def test_indent():
 multiline_string = 'test\ntest1\ntest2\ntest3'
 indented_multiline_string = '    test\n    test1\n    test2\n    test3'
 assert (indented_multiline_string == _indent(multiline_string, 4))

def test_indent ( ) : multiline_string = 'test\ntest1\ntest2\ntest3' indented_multiline_string = '    test\n    test1\n    test2\n    test3' assert ( indented_multiline_string == _indent ( multiline_string , 4 ) )
assert that indenting a multiline string by 4 spaces prepends 4 spaces before each new line .