예제 #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)