Permalink
Browse files

Make test_csrf work across Django versions.

  • Loading branch information...
1 parent 33d37b9 commit 7810633f4402df70af0cb19ac8db73f010f2a19f @jsocol jsocol committed Nov 30, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 jingo/tests/test_helpers.py
@@ -99,9 +99,8 @@ def test_class_selected():
def test_csrf():
s = render('{{ csrf() }}', {'csrf_token': 'fffuuu'})
- eq_(s, "<div style='display:none'>"
- "<input type='hidden' name='csrfmiddlewaretoken' value='fffuuu' />"
- "</div>")
+ csrf = "<input type='hidden' name='csrfmiddlewaretoken' value='fffuuu' />"
+ assert csrf in s
def test_field_attrs():

0 comments on commit 7810633

Please sign in to comment.