コード例 #1
0
 def test_circle_max_point(self):
     '''Test Circle.max_point()'''
     cir = Circle(2, 3, 4)
     bottom_right = cir.max_point()
     self.assertEqual(bottom_right.x, 6)
     self.assertEqual(bottom_right.y, 7)
コード例 #2
0
 def test_circle_min_point(self):
     '''Test Circle.min_point()'''
     cir = Circle(2, 3, 4)
     top_left = cir.min_point()
     self.assertEqual(top_left.x, -2)
     self.assertEqual(top_left.y, -1)