Example #1
0
 def test_unwire_package_function_by_reference(self):
     from wiringstringidssamples.package.subpackage import submodule
     self.container.unwire()
     self.assertIsInstance(submodule.test_function(), Provide)
Example #2
0
 def test_package_submodule_lookup(self):
     from wiringstringidssamples.package.subpackage.submodule import test_function
     service = test_function()
     self.assertIsInstance(service, Service)
Example #3
0
 def test_unwire_package_function(self):
     self.container.unwire()
     from wiringstringidssamples.package.subpackage.submodule import test_function
     self.assertIsInstance(test_function(), Provide)