def test_circle_from_tuple_only_tuple(self): """C-22. Create Circle using from_tuple with only tuple.""" center_point = 5, 6 expected = ((5, 6), 1) circle = Circle.from_tuple(center=center_point) self.assertEqual(circle_data(circle), expected)
def test_error_circle_from_tuple_no_args(self): """C-21. Verify error using Circle.from_tuple with no arguments.""" with self.assertRaises(TypeError): Circle.from_tuple()
def test_circle_create_from_tuple_only_tuple(self): """C-22. Test circle creation using from_tuple with only tuple.""" expected = ((3, 4), 1) circle = Circle.from_tuple(center=(3, 4)) self.assertEqual(circle_data(circle), expected)
def test_circle_from_tuple(self): """C-20. Create Circle using from_tuple instead of a Point.""" center_point = 3, 4 expected = ((3, 4), 3) circle = Circle.from_tuple(center=center_point, radius=3) self.assertEqual(circle_data(circle), expected)
def test_circle_create_from_tuple(self): """C-20. Test circle creation using from_tuple.""" expected = ((3, 4), 2) circle = Circle.from_tuple(center=(3, 4), radius=2) self.assertEqual(circle_data(circle), expected)