Пример #1
0
 def testReturnNewCopy(self):
     '''Point returns a copy of itself.'''
     pt1 = Point(1.1, 2.3)
     pt2 = pt1.copy()
     self.assertEqual(pt1, pt2)
     pt2 += pt1
     self.assert_(not pt1 == pt2)
Пример #2
0
 def testReturnNewCopy(self):
     '''Point returns a copy of itself.'''
     pt1 = Point(1.1, 2.3)
     pt2 = pt1.copy()
     self.assertEqual(pt1, pt2)
     pt2 += pt1
     self.assertFalse(pt1 == pt2)