Fix _assert_exception()
_assert_exception() is expected to catch the case where an exception with certain data must be thrown out. But it misses the case that no exception is thrown. This patch fixes the bug. Change-Id: Ia51e12d171512db4e9bc6fc1dd3eb66c951051e8 Closes-bug: #1537892
This commit is contained in:
parent
eba1f9e9b4
commit
4ff9965bcb
@ -64,3 +64,5 @@ class DesignateV2Test(BaseDesignateTest):
|
||||
except exc as e:
|
||||
self.assertEqual(status, e.resp_body['code'])
|
||||
self.assertEqual(type_, e.resp_body['type'])
|
||||
else:
|
||||
raise self.failureException("Test failed due to no exception.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user