diff options
Diffstat (limited to 'src/shorturls/tests')
| -rw-r--r-- | src/shorturls/tests/test_templatetag.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/shorturls/tests/test_templatetag.py b/src/shorturls/tests/test_templatetag.py index daa5143..2127817 100644 --- a/src/shorturls/tests/test_templatetag.py +++ b/src/shorturls/tests/test_templatetag.py @@ -1,4 +1,4 @@ -from django import template +from django.template import Template, Context  from django.conf import settings  from django.test import TestCase  from shorturls.tests.models import Animal, Vegetable, Mineral @@ -23,7 +23,7 @@ class RedirectViewTestCase(TestCase):              settings.SHORT_BASE_URL = self.old_base      def render(self, t, **c): -        return template.Template('{% load shorturl %}'+t).render(c) +        return Template('{% load shorturl %}'+t).render(Context(c))      def test_shorturl(self):          r = self.render('{% shorturl a %}', a=Animal.objects.get(id=12345)) | 
