fixes some smaller problems for Jinja2 on Jython.
[jinja2.git] / tests / test_filters.py
index 19902ff8583d2771cf6549855d2ee2df79488bc0..574169370fa83b15e5423ab738e296d41ce81092 100644 (file)
@@ -89,10 +89,10 @@ def test_default():
 
 def test_dictsort():
     tmpl = env.from_string(DICTSORT)
-    out = tmpl.render(foo={"a": 0, "b": 1, "c": 2, "A": 3})
-    assert out == ("[('a', 0), ('A', 3), ('b', 1), ('c', 2)]|"
-                   "[('A', 3), ('a', 0), ('b', 1), ('c', 2)]|"
-                   "[('a', 0), ('b', 1), ('c', 2), ('A', 3)]")
+    out = tmpl.render(foo={"aa": 0, "b": 1, "c": 2, "AB": 3})
+    assert out == ("[('aa', 0), ('AB', 3), ('b', 1), ('c', 2)]|"
+                   "[('AB', 3), ('aa', 0), ('b', 1), ('c', 2)]|"
+                   "[('aa', 0), ('b', 1), ('c', 2), ('AB', 3)]")
 
 
 def test_batch():