diff options
author | SW <wtp.rom@gmail.com> | 2014-04-08 14:55:21 -0600 |
---|---|---|
committer | SW <wtp.rom@gmail.com> | 2014-04-08 15:02:25 -0600 |
commit | a2f9a972c5ccb4bcecff89c07ee8a9a73ca97fd1 (patch) | |
tree | 45ece17b60415de3b93ef0704d372824cf38caf8 | |
parent | 1f6c6b50fed188ba68c2e98a3798a94de5df9307 (diff) | |
download | dogpile-cache-a2f9a972c5ccb4bcecff89c07ee8a9a73ca97fd1.tar.gz |
Add unit test to cover Mako entry point.
-rw-r--r-- | tests/cache/test_mako.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/cache/test_mako.py b/tests/cache/test_mako.py new file mode 100644 index 0000000..03c060c --- /dev/null +++ b/tests/cache/test_mako.py @@ -0,0 +1,18 @@ +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'"
|