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:
Brian Haley 2020-06-25 14:51:40 -04:00 committed by Carlos Goncalves
parent d7d8c8efe4
commit ec7195d713
1 changed files with 2 additions and 0 deletions

View File

@ -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(