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)
def _teardown_components(): ctx.unload_components(_test_components)