#NEWLINE# def test_inline_run_clean_modules( testdir ) : #NEWLINE# #INDENT# test_mod = testdir . makepyfile ( 'def test_foo(): assert True' ) #NEWLINE# result = testdir . inline_run ( str ( test_mod ) ) #NEWLINE# assert ( result . ret == EXIT_OK ) #NEWLINE# test_mod . write ( 'def test_foo(): assert False' ) #NEWLINE# result2 = testdir . inline_run ( str ( test_mod ) ) #NEWLINE# assert ( result2 . ret == EXIT_TESTSFAILED )