def test_rotate(self): c = (0, 0, 0) t = Triangle([0, 0, 10, 0, 10, 10], c, 255) t.rotate(2 * math.pi) self.assertEquals(t.coordinates, [0, 0, 10, 0, 10, 10])