def test_eq(self): a = GameObject() a.pos_x = 100 b = GameObject() b.pos_x = 100 self.assertTrue(a == b) pass
def test_IsCollidingWith_6(self): a = GameObject() b = GameObject() a.pos_x = 0 a.pos_y = 0 a.half_width = 1 a.half_height = 1 b.pos_x = 1 b.pos_y = 1 b.half_width = 1 b.half_height = 1 self.assertTrue(a.IsCollidingWith(b) == 1) self.assertTrue(b.IsCollidingWith(a) == 1) pass
def test_ne(self): a = GameObject() b = GameObject() b.pos_x = 100 self.assertTrue(a != b)