Fixed test that broke with recent Django SVN trunk. Django now seems to strictly...
authorMichael Elsdoerfer <michael@elsdoerfer.info>
Fri, 8 Jan 2010 23:13:57 +0000 (00:13 +0100)
committerMichael Elsdoerfer <michael@elsdoerfer.info>
Fri, 8 Jan 2010 23:13:57 +0000 (00:13 +0100)
With this commit, all the tests pass with the latest Django trunk.

tests/test_templates.py

index bc304e60f009dacb2e95011bd2107ba14517b46e..8ac15b7fc1454f6232b6a1466c723e4958d0cdde 100644 (file)
@@ -106,4 +106,4 @@ def test_templatetags():
         f2 = tables.Column()\r
     t = Template('{% set_url_param x=table.order_by %}')\r
     table = MyTable([], order_by=('f1', 'f2'))\r
-    assert t.render({'request': HttpRequest(), 'table': table}) == '?x=f1%2Cf2'\r
+    assert t.render(Context({'request': HttpRequest(), 'table': table})) == '?x=f1%2Cf2'\r