Commit 4a74efb8 by Xavier Ordoquy

Made the test 1.3 and 1.5 compatible.

parent 3dd19708
......@@ -52,7 +52,11 @@ class BaseTaggingTest(object):
return form_str
def assert_form_renders(self, form, html):
try:
self.assertHTMLEqual(str(form), self._get_form_str(html))
except AttributeError:
self.assertEqual(str(form), self._get_form_str(html))
class BaseTaggingTestCase(TestCase, BaseTaggingTest):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment