#NEWLINE# @ mock . patch ( 'os.path.isdir' ) #NEWLINE# def testInit_RunObjPackagePath( self , isdir_mock ) : #NEWLINE# #INDENT# isdir_mock . return_value = True #NEWLINE# self . _profile . __init__ ( 'test/test_pkg' ) #NEWLINE# self . assertEqual ( self . _profile . _run_object , 'test/test_pkg' ) #NEWLINE# self . assertEqual ( isdir_mock . _profile . _run_args , '' ) #NEWLINE# self . _profile . __init__ ( 'test/test_pkg --help' ) #NEWLINE# self . assertEqual ( self . _profile . _run_object , 'test/test_pkg' ) #NEWLINE# self . assertEqual ( self . _profile . _run_args , '--help' )