Skip to content
Snippets Groups Projects
Commit 0e593e16 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix Exception.message issue in test_ra_service_and_rpc.py

parent 3fc3f648
No related branches found
No related tags found
No related merge requests found
......@@ -83,12 +83,12 @@ try:
# test non existing service method, should timeout
with self.assertRaises(ValueError) as cm:
rpc.rpc('foo', timeout=1)
self.assertEqual(cm.exception.message, "{'backtrace': '', 'state': 'TIMEOUT', 'errmsg': 'RPC Timed out'}")
self.assertEqual(str(cm.exception), "{'backtrace': '', 'state': 'TIMEOUT', 'errmsg': 'RPC Timed out'}")
## test method with wrong args
#with self.assertRaises(TypeError) as cm:
#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 str(cm.exception))
# create and run the service
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