def test_circle_modification_center_from_tuple(self): """C-23. Verify Circle modification with center_from_tuple method.""" circle = Circle() new_center = 2, 3 circle.center_from_tuple(new_center) expected = ((2, 3), 1) self.assertEqual(circle_data(circle), expected)
def test_circle_modify_center_from_tuple(self): """C-23. Test circle modify with center_from_tuple method.""" expected = ((3, 4), 2) circle = Circle(center=Point(1, 2), radius=2) t = (3, 4) circle.center_from_tuple(t) self.assertEqual(circle_data(circle), expected)
def test_circle_modify_center_from_tuple(self): """C-23. Test circle modify with center_from_tuple method.""" expected = ((3, 4), 5) circle = Circle(Point(1, 2), 5) new_center = 3, 4 circle.center_from_tuple(new_center) self.assertEqual(circle_data(circle), expected)
def test_error_center_from_tuple_no_args(self): """C-24. Verify error using center_from_tuple with no arguments.""" circle = Circle() with self.assertRaises(TypeError): circle.center_from_tuple()
def test_circle_modify_center_from_tuple_no_args(self): """C-24. Verify error using center_from_tuple with no arguments.""" circle = Circle(center=Point(3, 4), radius=2) with self.assertRaises(TypeError): circle.center_from_tuple()