def test_register_container(self):
        register_loader_containers(self.container)
        importlib.reload(module)
        importlib.import_module('wiringsamples.imports')

        service = module.test_function()
        self.assertIsInstance(service, Service)
def test_register_container(container: Container) -> None:
    register_loader_containers(container)
    importlib.reload(module)

    service = module.test_function()
    assert isinstance(service, Service)