コード例 #1
0
def test_unload_components():
    _comps = (Interface1, Interface2)
    ctx.unload_components(_comps)
    for comp in _comps:
        assert_false(comp in InterfaceMeta._registry)

    # test that we fail silently if a component is not loaded
    ctx.unload_components(_comps)
コード例 #2
0
def test_unload_components():
    _comps = (Interface1, Interface2)
    ctx.unload_components(_comps)
    for comp in _comps:
        assert_false(comp in InterfaceMeta._registry)

    # test that we fail silently if a component is not loaded
    ctx.unload_components(_comps)
コード例 #3
0
def _teardown_components():
    ctx.unload_components(_test_components)
コード例 #4
0
def _teardown_components():
    ctx.unload_components(_test_components)