MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_nested_modules

Function test_nested_modules

tests/test_modules.py:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_nested_modules():
14 import pybind11_tests
15
16 assert pybind11_tests.__name__ == "pybind11_tests"
17 assert pybind11_tests.modules.__name__ == "pybind11_tests.modules"
18 assert (
19 pybind11_tests.modules.subsubmodule.__name__
20 == "pybind11_tests.modules.subsubmodule"
21 )
22 assert m.__name__ == "pybind11_tests.modules"
23 assert ms.__name__ == "pybind11_tests.modules.subsubmodule"
24 assert m.__file__ == ms.__file__
25
26 assert ms.submodule_func() == "submodule_func()"
27
28
29def test_reference_internal():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected