#NEWLINE# @ mock . patch ( 'os.path.isdir' ) #NEWLINE# @ mock . patch ( 'os.path.isfile' ) #NEWLINE# def testInit_RunObjImportedPackage( self , isfile_mock , isdir_mock ) : #NEWLINE# #INDENT# ( isfile_mock . return_value , isdir_mock . return_value ) = ( False , False ) #NEWLINE# self . _profile . __init__ ( 'test_pkg' ) #NEWLINE# self . assertEqual ( isdir_mock . _profile . _run_object , 'test_pkg' ) #NEWLINE# self . assertEqual ( self . _profile . _run_args , '' ) #NEWLINE# self . _profile . __init__ ( 'test_pkg --bar --baz' ) #NEWLINE# self . assertEqual ( self . _profile . _run_object , 'test_pkg' ) #NEWLINE# self . assertEqual ( self . _profile . _run_args , '--bar --baz' )