Permalink
Browse files

Django dropped direct_to_template.

  • Loading branch information...
1 parent b4d1019 commit 33d37b9e26e0f0aa061a2114296567efeb07911c @jsocol jsocol committed Nov 30, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −8 jingo/tests/test_views.py
@@ -1,19 +1,11 @@
from django.utils import translation
-from django.views.generic.simple import direct_to_template
from mock import patch, sentinel
from nose.tools import eq_
from jingo import get_env, render_to_string
-def test_direct_to_template():
- response = direct_to_template(sentinel.request,
- 'jinja_app/test_nonoverride.html',
- {'x': 1})
- eq_('HELLO', response.content)
-
-
def test_template_substitution_crash():
translation.activate('xx')

0 comments on commit 33d37b9

Please sign in to comment.