Commits

Anonymous committed a2f9a97

Add unit test to cover Mako entry point.

Comments (0)

Files changed (1)

tests/cache/test_mako.py

+from unittest import TestCase
+
+from dogpile.cache import util
+
+
+class MakoTest(TestCase):
+    """ Test entry point for Mako
+    """
+
+    def test_entry_point(self):
+        import pkg_resources
+        
+        for impl in pkg_resources.iter_entry_points("mako.cache", "dogpile.cache"):
+            print impl
+            impl.load()
+            return
+        else:
+            assert 0, "Missing entry point 'dogpile.cache' for 'mako.cache'"