Пример #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)
Пример #2
0
 def test_package_submodule_lookup(self):
     from wiringsamples.package.subpackage.submodule import test_function
     service = test_function()
     self.assertIsInstance(service, Service)
Пример #3
0
 def test_unwire_package_function(self):
     self.container.unwire()
     from wiringsamples.package.subpackage.submodule import test_function
     self.assertIsInstance(test_function(), Provide)