Skip to content

Instantly share code, notes, and snippets.

@cholcombe973
Created September 9, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cholcombe973/5692a444b02097b3db73 to your computer and use it in GitHub Desktop.
Save cholcombe973/5692a444b02097b3db73 to your computer and use it in GitHub Desktop.
======================================================================
FAIL: tests.payload.test_execd.ExecDTestCase.test_execd_run_dies_with_return_code
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/chris/repos/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/chris/repos/charm-helpers/tests/payload/test_execd.py", line 151, in test_execd_run_dies_with_return_code
exit_.assert_called_with(126)
File "/home/chris/repos/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 831, in assert_called_with
raise AssertionError('Expected call: %s\nNot called' % (expected,))
AssertionError: Expected call: exit(126)
Not called
======================================================================
FAIL: tests.payload.test_execd.ExecDTestCase.test_execd_run_logs_exception
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/chris/repos/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/chris/repos/charm-helpers/tests/payload/test_execd.py", line 138, in test_execd_run_logs_exception
log_.assert_called_with(expected_log)
File "/home/chris/repos/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 831, in assert_called_with
raise AssertionError('Expected call: %s\nNot called' % (expected,))
AssertionError: Expected call: log('Error (126) running /tmp/tmpP5sAtO/exec.d/basenode/charm-pre-install. Output: None')
Not called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment