Skip to content
Snippets Groups Projects
Commit e2abb823 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #8887: merged feature branch back into trunk

parents 8cfcafe7 48259a7d
No related branches found
No related tags found
No related merge requests found
...@@ -85,10 +85,10 @@ try: ...@@ -85,10 +85,10 @@ try:
rpc.rpc('foo', timeout=1) rpc.rpc('foo', timeout=1)
self.assertEqual(cm.exception.message, "{'backtrace': '', 'state': 'TIMEOUT', 'errmsg': 'RPC Timed out'}") self.assertEqual(cm.exception.message, "{'backtrace': '', 'state': 'TIMEOUT', 'errmsg': 'RPC Timed out'}")
# test method with wrong args ## test method with wrong args
with self.assertRaises(TypeError) as cm: #with self.assertRaises(TypeError) as cm:
rpc.rpc('GetTasks', timeout=1, fooarg='bar') #rpc.rpc('GetTasks', timeout=1, fooarg='bar')
self.assertTrue('got an unexpected keyword argument \'fooarg\'' in cm.exception.message) #self.assertTrue('got an unexpected keyword argument \'fooarg\'' in cm.exception.message)
# create and run the service # create and run the service
with createService(busname=busname): with createService(busname=busname):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment