summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-03-23 21:32:19 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-03-23 21:32:19 -0700
commitfabc097de7009c4796434d817f04aa14ada81e40 (patch)
tree099328a58f91d1ddac23708ed9652fffcf96fc2b
parenteaee99c66735a7c2bb052bd14e828545f619c0b8 (diff)
downloadpystache-fabc097de7009c4796434d817f04aa14ada81e40.tar.gz
LoaderTests now uses the AssertStringMixin.
-rw-r--r--tests/test_custom_template.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_custom_template.py b/tests/test_custom_template.py
index ee4b8c8..3e53190 100644
--- a/tests/test_custom_template.py
+++ b/tests/test_custom_template.py
@@ -20,6 +20,7 @@ from pystache.custom_template import Loader
from pystache.locator import Locator
from pystache.reader import Reader
from .common import AssertIsMixin
+from .common import AssertStringMixin
from .common import DATA_DIR
from .data.views import SampleView
from .data.views import NonAscii
@@ -135,18 +136,13 @@ class ViewTestCase(unittest.TestCase):
self.assertEquals(view.render(), """one, two, three, empty list""")
-class LoaderTests(unittest.TestCase, AssertIsMixin):
+class LoaderTests(unittest.TestCase, AssertIsMixin, AssertStringMixin):
"""
Tests the custom_template.Loader class.
"""
- def assertString(self, actual, expected):
- # TODO: use the assertStrings mixin.
- self.assertEquals(type(actual), type(expected))
- self.assertEquals(actual, expected)
-
def test_init__defaults(self):
loader = Loader()