Skip to content

Instantly share code, notes, and snippets.

@laser
Last active December 11, 2015 00:59
Show Gist options
  • Save laser/4520238 to your computer and use it in GitHub Desktop.
Save laser/4520238 to your computer and use it in GitHub Desktop.
gross?
165 def testUnableToRemoveOwnerProjectAccess(self):
166 try:
167 raise barrister.RpcException(40, "dingle")
168 except barrister.RpcException as e:
169 assert e.code == 40
//
(simplemappingsystem-tests)Erin-Swenson-Healeys-MacBook-Pro:simplemappingsystem-tests erinswenson-healey$ nosetests --pdb --pdb-failures
..> /Users/erinswenson-healey/.virtualenvs/simplemappingsystem-tests/lib/python2.7/site-packages/barrister/runtime.py(610)to_result()
-> raise RpcException(e["code"], e["message"], data)
(Pdb) exit
E...
======================================================================
ERROR: tests.TestCase.testProjectAccessLifecycle
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/erinswenson-healey/.virtualenvs/simplemappingsystem-tests/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/erinswenson-healey/dev/simplemappingsystem-tests/tests.py", line 160, in testProjectAccessLifecycle
svc.delete_project_access(self.uid, id)
File "/Users/erinswenson-healey/.virtualenvs/simplemappingsystem-tests/lib/python2.7/site-packages/barrister/runtime.py", line 661, in caller
return self.client.call(iface_name, func_name, params)
File "/Users/erinswenson-healey/.virtualenvs/simplemappingsystem-tests/lib/python2.7/site-packages/barrister/runtime.py", line 561, in call
return self.to_result(iface_name, func_name, resp)
File "/Users/erinswenson-healey/.virtualenvs/simplemappingsystem-tests/lib/python2.7/site-packages/barrister/runtime.py", line 610, in to_result
raise RpcException(e["code"], e["message"], data)
RpcException: RpcException: code=40 msg=dingle
----------------------------------------------------------------------
Ran 6 tests in 13.612s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment