Browse Source

tests: Add unit test to check new panda3d.net module

rdb 1 year ago
parent
commit
b605e1240c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/test_imports.py

+ 7 - 0
tests/test_imports.py

@@ -36,6 +36,13 @@ def test_imports_panda3d():
                 importlib.import_module('panda3d.%s' % (module))
 
 
+def test_imports_panda3d_net():
+    from panda3d import core
+    from panda3d import net
+    assert core.ConnectionWriter == net.ConnectionWriter
+    assert core.ConnectionWriter.__module__ == 'panda3d.net'
+
+
 def test_imports_direct():
     import direct.actor.Actor
     import direct.actor.DistributedActor