Exemple #1
0
 def test_offset(self):
     disc = Disc(gold, 10, (11, 22))
     disc.offset((100, 200))
     self.assertEquals(disc.get_centroid(), (111, 222), "didnt apply offset")
Exemple #2
0
 def test_get_centroid(self):
     disc = Disc(gold, 10, (111, 222))
     self.assertEquals(disc.get_centroid(), (111, 222), "bad offset")