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