diff --git a/test/test_circle.py b/test/test_circle.py index 7995403..9124676 100644 --- a/test/test_circle.py +++ b/test/test_circle.py @@ -294,7 +294,16 @@ def test_top(self): """Ensures changing the top attribute moves the circle and does not change the circle's radius.""" expected_radius = 5.0 - for pos in [(1, 0), (0, 0), (-1, 0), (0, -1), (1, 1), (-1, -1), (-1, 1), (1, -1)]: + for pos in [ + (1, 0), + (0, 0), + (-1, 0), + (0, -1), + (1, 1), + (-1, -1), + (-1, 1), + (1, -1), + ]: c = Circle((0, 0), expected_radius) c.top = pos @@ -336,7 +345,16 @@ def test_left(self): """Ensures changing the left attribute moves the circle and does not change the circle's radius.""" expected_radius = 5.0 - for pos in [(1, 0), (0, 0), (-1, 0), (0, -1), (1, 1), (-1, -1), (-1, 1), (1, -1)]: + for pos in [ + (1, 0), + (0, 0), + (-1, 0), + (0, -1), + (1, 1), + (-1, -1), + (-1, 1), + (1, -1), + ]: c = Circle((0, 0), expected_radius) c.left = pos @@ -378,7 +396,16 @@ def test_right(self): """Ensures changing the right attribute moves the circle and does not change the circle's radius.""" expected_radius = 5.0 - for pos in [(1, 0), (0, 0), (-1, 0), (0, -1), (1, 1), (-1, -1), (-1, 1), (1, -1)]: + for pos in [ + (1, 0), + (0, 0), + (-1, 0), + (0, -1), + (1, 1), + (-1, -1), + (-1, 1), + (1, -1), + ]: c = Circle((0, 0), expected_radius) c.right = pos @@ -420,7 +447,16 @@ def test_bottom(self): """Ensures changing the bottom attribute moves the circle and does not change the circle's radius.""" expected_radius = 5.0 - for pos in [(1, 0), (0, 0), (-1, 0), (0, -1), (1, 1), (-1, -1), (-1, 1), (1, -1)]: + for pos in [ + (1, 0), + (0, 0), + (-1, 0), + (0, -1), + (1, 1), + (-1, -1), + (-1, 1), + (1, -1), + ]: c = Circle((0, 0), expected_radius) c.bottom = pos @@ -458,7 +494,6 @@ def test_bottom_del(self): with self.assertRaises(AttributeError): del c.bottom - def test_area(self): """Ensures the area is calculated correctly.""" c = Circle(0, 0, 1)