Add test for catalog module backward compatibility

This commit is contained in:
Roman Mogilatov 2015-11-23 20:57:10 +02:00
parent 524cd78c5f
commit 64bc56cbb9

View File

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