Fix test of Injection.value with catalog bundle

This commit is contained in:
Roman Mogilatov 2015-10-19 14:53:38 +03:00
parent 824ed4f3e9
commit b61e3ee007

View File

@ -28,8 +28,7 @@ class InjectionTests(unittest.TestCase):
"""Test catalog.""" """Test catalog."""
provider = di.Provider() provider = di.Provider()
injection = di.Injection('some_arg_name', injection = di.Injection(TestCatalog.Bundle(TestCatalog.provider))
TestCatalog.Bundle(TestCatalog.provider))
self.assertIsInstance(injection.value, TestCatalog.Bundle) self.assertIsInstance(injection.value, TestCatalog.Bundle)