From ec7195d713d71370fa6a72d3839253b9789b3b4e Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 25 Jun 2020 14:51:40 -0400 Subject: [PATCH] Add missing assertIsInstance checks Two tests were missing assertIsInstance() checks, this makes them like the tests above and below them. Change-Id: Ie201f5b2574e5e11aeca9c08859977a1b8a3c1d8 --- octavia_lib/tests/unit/api/drivers/test_exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/octavia_lib/tests/unit/api/drivers/test_exceptions.py b/octavia_lib/tests/unit/api/drivers/test_exceptions.py index 03c4a6f..9e5ae1a 100644 --- a/octavia_lib/tests/unit/api/drivers/test_exceptions.py +++ b/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(