From 3e3f782ab8256c8aeade1feb5199d9ddb4f5ca9d Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Mon, 16 Mar 2015 11:44:47 +0200 Subject: [PATCH] Test for is_provider check for providers.ExternalDependency --- tests/test_providers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_providers.py b/tests/test_providers.py index d5cf552e..4675e570 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -377,6 +377,10 @@ class ExternalDependencyTests(unittest.TestCase): """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): """Test call of satisfied external dependency.""" provider = ExternalDependency(instance_of=object)