Make test more strict.
@@ -70,10 +70,10 @@ class PythonRunnerActionWrapperProcessTestCase(unittest2.TestCase):
self.assertTrue(os.path.isfile(WRAPPER_SCRIPT_PATH))
# 2. First run it without time to verify path is valid
- command_string = 'python %s' % (WRAPPER_SCRIPT_PATH)
+ command_string = 'python %s --file-path=foo.py' % (WRAPPER_SCRIPT_PATH)
_, _, stderr = run_command(command_string, shell=True)
self.assertTrue('usage: python_action_wrapper.py' in stderr)
- self.assertTrue('python_action_wrapper.py: error: ' in stderr)
+ self.assertTrue('python_action_wrapper.py: error: argument --pack is required' in stderr)
# 3. Now time it
command_string = '%s -f "%%e" python %s' % (TIME_BINARY_PATH, WRAPPER_SCRIPT_PATH)
