def test_function_wiring_provider_context_arg(self): test_service = self.container.service() service = module.test_function_provider( service_provider=lambda: test_service) self.assertIs(service, test_service)
def test_function_wiring_provider(self): service = module.test_function_provider() self.assertIsInstance(service, Service)