Browse Source

Add bullet ghost node test

Stephen Imhoff 4 years ago
parent
commit
a9f3940577
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/bullet/test_bullet_bam.py

+ 9 - 0
tests/bullet/test_bullet_bam.py

@@ -131,3 +131,12 @@ def test_sphere_shape():
     assert shape.margin == shape2.margin
     assert shape.margin == shape2.margin
     assert shape.name == shape2.name
     assert shape.name == shape2.name
     assert shape.radius == shape2.radius
     assert shape.radius == shape2.radius
+
+
+def test_ghost():
+    node = bullet.BulletGhostNode("some ghost node")
+
+    node2 = reconstruct(node)
+
+    assert type(node) is type(node2)
+    assert node.name == node2.name