From 7810633f4402df70af0cb19ac8db73f010f2a19f Mon Sep 17 00:00:00 2001 From: James Socol Date: Fri, 30 Nov 2012 12:43:29 -0500 Subject: [PATCH] Make test_csrf work across Django versions. --- jingo/tests/test_helpers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jingo/tests/test_helpers.py b/jingo/tests/test_helpers.py index d9e56ff..21f83ff 100644 --- a/jingo/tests/test_helpers.py +++ b/jingo/tests/test_helpers.py @@ -99,9 +99,8 @@ def test_class_selected(): def test_csrf(): s = render('{{ csrf() }}', {'csrf_token': 'fffuuu'}) - eq_(s, "
" - "" - "
") + csrf = "" + assert csrf in s def test_field_attrs():