mirror of
https://github.com/wassname/sloth.git
synced 2026-06-27 20:23:04 +08:00
12 lines
305 B
Python
12 lines
305 B
Python
from sloth.annotations.container import *
|
|
|
|
class MockupContainer:
|
|
pass
|
|
|
|
def test_import_callable():
|
|
containers = (('*', 'container_factory_test.MockupContainer'),)
|
|
factory = AnnotationContainerFactory(containers)
|
|
item = factory.create('test')
|
|
assert isinstance(item, MockupContainer)
|
|
|