예제 #1
0
 def test_new_point(self):
     new = Point(3, 3)
     self.assertEqual(new.x, 3)
     self.assertEqual(new.y, 3)
     self.assertEqual(new.isExist(), True)
예제 #2
0
 def test_new_point_null(self):
     new = Point(None, 3)
     self.assertEqual(new.x, None)
     self.assertEqual(new.y, 3)
     self.assertEqual(new.isExist(), False)