mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-28 20:44:01 +03:00
Update CallableDelegate tests
This commit is contained in:
parent
de12aee362
commit
0008363a96
|
@ -262,7 +262,7 @@ class CallableDelegateTests(unittest.TestCase):
|
||||||
def test_is_delegate(self):
|
def test_is_delegate(self):
|
||||||
self.assertIsInstance(self.delegate, providers.Delegate)
|
self.assertIsInstance(self.delegate, providers.Delegate)
|
||||||
|
|
||||||
def test_init_with_not_factory(self):
|
def test_init_with_not_callable(self):
|
||||||
self.assertRaises(errors.Error,
|
self.assertRaises(errors.Error,
|
||||||
providers.CallableDelegate,
|
providers.CallableDelegate,
|
||||||
providers.Object(object()))
|
providers.Object(object()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user