Add missing assertIsInstance checks
Two tests were missing assertIsInstance() checks, this makes them like the tests above and below them. Change-Id: Ie201f5b2574e5e11aeca9c08859977a1b8a3c1d8
This commit is contained in:
parent
d7d8c8efe4
commit
ec7195d713
|
@ -72,6 +72,7 @@ class TestProviderExceptions(base.TestCase):
|
|||
self.assertEqual(self.fault_object_id,
|
||||
update_status_error.status_object_id)
|
||||
self.assertEqual(self.fault_record, update_status_error.status_record)
|
||||
self.assertIsInstance(update_status_error, Exception)
|
||||
|
||||
def test_UpdateStatisticsError(self):
|
||||
update_stats_error = exceptions.UpdateStatisticsError(
|
||||
|
@ -86,6 +87,7 @@ class TestProviderExceptions(base.TestCase):
|
|||
self.assertEqual(self.fault_object_id,
|
||||
update_stats_error.stats_object_id)
|
||||
self.assertEqual(self.fault_record, update_stats_error.stats_record)
|
||||
self.assertIsInstance(update_stats_error, Exception)
|
||||
|
||||
def test_NotFound(self):
|
||||
not_found_error = exceptions.NotFound(
|
||||
|
|
Loading…
Reference in New Issue