Test for is_provider check for providers.ExternalDependency

This commit is contained in:
Roman Mogilatov 2015-03-16 11:44:47 +02:00
parent 3754c7a6c5
commit 3e3f782ab8
1 changed files with 4 additions and 0 deletions

View File

@ -377,6 +377,10 @@ class ExternalDependencyTests(unittest.TestCase):
"""ExternalDependency test cases.""" """ExternalDependency test cases."""
def test_is_provider(self):
"""Test `is_provider` check."""
self.assertTrue(is_provider(ExternalDependency(instance_of=object)))
def test_call_satisfied(self): def test_call_satisfied(self):
"""Test call of satisfied external dependency.""" """Test call of satisfied external dependency."""
provider = ExternalDependency(instance_of=object) provider = ExternalDependency(instance_of=object)