Update CallableDelegate tests

This commit is contained in:
Roman Mogilatov 2017-07-09 23:37:51 +03:00
parent de12aee362
commit 0008363a96

View File

@ -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()))