Skip to content

Instantly share code, notes, and snippets.

@mkmik
Created August 12, 2011 14:19
Show Gist options
  • Save mkmik/1142126 to your computer and use it in GitHub Desktop.
Save mkmik/1142126 to your computer and use it in GitHub Desktop.
assert invocation == [('write', ("usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exitX\n",),{})]
"""
======================================================================
FAIL: test_help (opennode.oms.tests.test_cmdline.CmdLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/tests/test_cmdline.py", line 20, in test_help
assert invocation == [('write', ("usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exitX\n",),{})]
AssertionError:
self.parser.print_help()
[('write', ('usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exit\n',), {})] = self.terminal.method_calls
>> assert [('write', ('usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exit\n',), {})] == [('write', ("usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exitX\n",),{})]
"""
assert invocation == [
('write', ("usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exitX\n",),{})]
"""
======================================================================
FAIL: test_help (opennode.oms.tests.test_cmdline.CmdLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/tests/test_cmdline.py", line 21, in test_help
('write', ("usage: nosetests [-h] N [N ...]\n\npositional arguments:\n N an integer for the accumulator\n\noptional arguments:\n -h, --help show this help message and exitX\n",),{})]
AssertionError:
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment