#NEWLINE# def test_endplus_hitting_EOF( ) : #NEWLINE# #INDENT# text = '\n' . join ( [ '     An indented line.' , '\n' , '\tLast non whitespace indented line.' ] ) #NEWLINE# lines = text . split ( '\n' ) #NEWLINE# it = enumerate ( text ) #NEWLINE# endplus_line = get_endplus_line ( it ) #NEWLINE# assert ( lines [ ( endplus_line - 1 ) ] == '\tLast non whitespace indented line.' )