Browse Source

Add missing assertIsInstance checks

Two tests were missing assertIsInstance() checks, this
makes them like the tests above and below them.

Change-Id: Ie201f5b2574e5e11aeca9c08859977a1b8a3c1d8
changes/90/738090/2 2.1.0
Brian Haley 1 year ago
committed by Carlos Goncalves
parent
commit
ec7195d713
  1. 2
      octavia_lib/tests/unit/api/drivers/test_exceptions.py

2
octavia_lib/tests/unit/api/drivers/test_exceptions.py

@ -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…
Cancel
Save