Example #1
0
    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)
Example #2
0
 def test_function_wiring_provider(self):
     service = module.test_function_provider()
     self.assertIsInstance(service, Service)