Test for is_provider check for providers.Callable

This commit is contained in:
Roman Mogilatov 2015-03-16 11:43:51 +02:00
parent 65f47b1222
commit 3754c7a6c5

View File

@ -465,6 +465,10 @@ class CallableTests(unittest.TestCase):
Injection('arg2', 'a2'),
Injection('arg3', 'a3'))
def test_is_provider(self):
"""Test `is_provider` check."""
self.assertTrue(is_provider(Callable(map)))
def test_call(self):
"""Test provider call."""
self.assertEqual(self.provider(), ('a1', 'a2', 'a3'))