Exemplo n.º 1
0
 def test_unwire_package_function_by_reference(self):
     from wiringsamples.package.subpackage import submodule
     self.container.unwire()
     self.assertIsInstance(submodule.test_function(), Provide)
Exemplo n.º 2
0
 def test_package_submodule_lookup(self):
     from wiringsamples.package.subpackage.submodule import test_function
     service = test_function()
     self.assertIsInstance(service, Service)
Exemplo n.º 3
0
 def test_unwire_package_function(self):
     self.container.unwire()
     from wiringsamples.package.subpackage.submodule import test_function
     self.assertIsInstance(test_function(), Provide)