mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-21 21:42:00 +00:00
assertIn fallback for py2.6/dj1.2
This commit is contained in:
parent
064dd5b681
commit
ba2c13c57c
1 changed files with 6 additions and 0 deletions
|
|
@ -18,6 +18,12 @@ class UserVoiceTagTestCase(TagTestCase):
|
|||
Tests for the ``uservoice`` template tag.
|
||||
"""
|
||||
|
||||
def assertIn(self, element, container):
|
||||
try:
|
||||
super(TagTestCase, self).assertIn(element, container)
|
||||
except AttributeError:
|
||||
self.assertTrue(element in container)
|
||||
|
||||
def test_node(self):
|
||||
r = UserVoiceNode().render(Context())
|
||||
self.assertIn("widget.uservoice.com/abcdefghijklmnopqrst.js", r)
|
||||
|
|
|
|||
Loading…
Reference in a new issue