summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-03-22 12:42:11 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-03-22 12:42:11 -0700
commitd54cc252df3472323504fcc732f3de8152f5b694 (patch)
tree7a3d2c8d9f8a7842679184c0685272f53e402c11
parent78ac3e0d1081c1fbc64247bb1c1b67cab8bb6c71 (diff)
downloadpystache-d54cc252df3472323504fcc732f3de8152f5b694.tar.gz
The CustomizedTemplate tests no longer depend on the View class.
-rw-r--r--tests/data/views.py6
-rw-r--r--tests/test_custom_template.py3
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/data/views.py b/tests/data/views.py
index 57b5a7d..b96d968 100644
--- a/tests/data/views.py
+++ b/tests/data/views.py
@@ -1,6 +1,6 @@
# coding: utf-8
-from pystache import View
+from pystache import CustomizedTemplate
class SayHello(object):
@@ -8,9 +8,9 @@ class SayHello(object):
return "World"
-class SampleView(View):
+class SampleView(CustomizedTemplate):
pass
-class NonAscii(View):
+class NonAscii(CustomizedTemplate):
pass
diff --git a/tests/test_custom_template.py b/tests/test_custom_template.py
index 9c93a04..40134ae 100644
--- a/tests/test_custom_template.py
+++ b/tests/test_custom_template.py
@@ -173,12 +173,11 @@ class LoaderTests(unittest.TestCase, AssertIsMixin):
# TODO: migrate these tests into the LoaderTests class.
-# TODO: switch these tests to using the CustomizedTemplate class instead of View.
# TODO: rename the get_template() tests to test load().
# TODO: condense, reorganize, and rename the tests so that it is
# clear whether we have full test coverage (e.g. organized by
# CustomizedTemplate attributes or something).
-class ViewTests(unittest.TestCase):
+class CustomizedTemplateTests(unittest.TestCase):
# TODO: rename this method to _make_loader().
def _make_locator(self):