def test_setCollisionShape(self): obj = CollisionObject() # Let go of the shape reference, it shouldn't matter. obj.setCollisionShape(SphereShape(3)) shape = obj.getCollisionShape() self.assertTrue(isinstance(shape, SphereShape)) self.assertEquals(shape.getRadius(), 3)
def test_setCollisionShape(self): obj = CollisionObject() # Let go of the shape reference, it shouldn't matter. obj.setCollisionShape(SphereShape(3)) shape = obj.getCollisionShape() self.assertTrue(isinstance(shape, SphereShape)) self.assertEquals(shape.getRadius(), 3)