Merge "More flexible matching in SSL error test"

This commit is contained in:
Jenkins 2015-04-16 06:46:13 +00:00 committed by Gerrit Code Review
commit 7cc4fc08f7
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ class QuobyteJsonRpcTestCase(test.TestCase):
try:
self.rpc.call('method', {'param': 'value'})
except exception.QBException as me:
self.assertEqual("Client SSL subsystem returned error: ",
six.text_type(me))
(self.assertTrue(six.text_type(me).startswith
('Client SSL subsystem returned error:')))
except Exception as e:
self.fail('Unexpected exception thrown: %s' % e)