From 7071e7231a485f9e5055f938c09496bc422043f5 Mon Sep 17 00:00:00 2001 From: kieranaustin <47895871+kieranaustin@users.noreply.github.com> Date: Thu, 4 Feb 2021 02:09:26 +0100 Subject: [PATCH] fix test Square isinstance of Square and Rectangle (#2) --- test_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_module.py b/test_module.py index 9f827cb..3570ab8 100644 --- a/test_module.py +++ b/test_module.py @@ -18,7 +18,7 @@ class UnitTests(unittest.TestCase): self.assertEqual(actual, expected, 'Expected Square class to be a distinct class from the Rectangle class.') def test_square_is_square_and_rectangle(self): - actual = isinstance(self.sq, shape_calculator.Square) and isinstance(self.sq, shape_calculator.Square) + actual = isinstance(self.sq, shape_calculator.Square) and isinstance(self.sq, shape_calculator.Rectangle) expected = True self.assertEqual(actual, expected, 'Expected square object to be an instance of the Square class and the Rectangle class.') @@ -112,4 +112,4 @@ class UnitTests(unittest.TestCase): self.assertEqual(actual, expected, 'Expected `get_amount_inside` to return 0.') if __name__ == "__main__": - unittest.main() \ No newline at end of file + unittest.main()