def test_stationary(self): a = Dummy(100, 0, 100, 0, 1) b = Dummy(0, 100, 100, 0, 1) self.failUnless(collision.collides(a, b))
def test_miss(self): a = Dummy(0, 0, 100, 75, 1) b = Dummy(0, 100, 75, 0, 1) self.failIf(collision.collides(a, b))
def test_cross(self): a = Dummy(0, 0, 100, 100, 1) b = Dummy(0, 100, 100, 0, 1) self.failUnless(collision.collides(a, b))