Files
bonobo/tests/test_publicapi.py
Romain Dorgueil bb5fc22f5e release: 0.2.2
2017-04-28 08:04:48 +02:00

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__