From 64bc56cbb98a5af143c75e40a9c8876f4413a4ad Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Mon, 23 Nov 2015 20:57:10 +0200 Subject: [PATCH] Add test for catalog module backward compatibility --- tests/test_catalogs.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_catalogs.py b/tests/test_catalogs.py index 03545f96..016d2cf0 100644 --- a/tests/test_catalogs.py +++ b/tests/test_catalogs.py @@ -555,3 +555,14 @@ class OverrideTests(unittest.TestCase): self.assertFalse(CatalogA.p11.is_overridden) self.assertFalse(CatalogA.p12.is_overridden) + + +class CatalogModuleBackwardCompatibility(unittest.TestCase): + """Backward compatibility test of catalog module.""" + + def test_import_catalog(self): + """Test that module `catalog` is the same as `catalogs`.""" + from dependency_injector import catalog + from dependency_injector import catalogs + + self.assertIs(catalog, catalogs)