#NEWLINE# def test_do_edit( demoenv , capsys ) : #NEWLINE# #INDENT# ( c , d ) = demoenv #NEWLINE# Cmddocs ( c ) . do_edit ( 'testfile1' , test = True ) #NEWLINE# ( out , err ) = capsys . readouterr ( ) #NEWLINE# assert out . startswith ( 'automatic change done' )