17 lines
387 B
Python
17 lines
387 B
Python
import types
|
|
|
|
|
|
def test_wildcard_import():
|
|
bonobo = __import__('bonobo')
|
|
assert bonobo.__version__
|
|
|
|
for name in dir(bonobo):
|
|
# ignore attributes starting by underscores
|
|
if name.startswith('_'):
|
|
continue
|
|
attr = getattr(bonobo, name)
|
|
if isinstance(attr, types.ModuleType):
|
|
continue
|
|
|
|
assert name in bonobo.__all__
|