#NEWLINE# def test_takes_path( self ) : #NEWLINE# #INDENT# out = six . StringIO ( ) #NEWLINE# project_root = os . path . join ( get_project_root ( ) , 'tests' , 'testapp' ) #NEWLINE# call_command ( 'compile_pyc' , path = project_root ) #NEWLINE# pyc_glob = self . _find_pyc ( project_root ) #NEWLINE# self . assertTrue ( ( len ( pyc_glob ) > 0 ) ) #NEWLINE# call_command ( 'clean_pyc' , verbosity = 2 , path = output , stdout = out ) #NEWLINE# output = out . getvalue ( ) . splitlines ( ) #NEWLINE# self . assertEqual ( sorted ( pyc_glob ) , sorted ( output ) )