Fix iteritems() call not compatible with python3.

This commit is contained in:
Christopher Ramírez 2014-07-19 22:07:41 -06:00
parent 278f09f080
commit 22adeb1dc3

View file

@ -37,7 +37,7 @@ class RenderTestCase(TestCase):
'{{ if <text:s/> multiple_spaces }}': '{{ if multiple_spaces }}', '{{ if <text:s/> multiple_spaces }}': '{{ if multiple_spaces }}',
} }
for test, expect in test_samples.iteritems(): for test, expect in test_samples.items():
assert self.engine._unescape_entities(test) == expect assert self.engine._unescape_entities(test) == expect
def test__encode_escape_chars(self): def test__encode_escape_chars(self):
@ -54,7 +54,7 @@ class RenderTestCase(TestCase):
'\u000a': '<text:s/>', '\u000a': '<text:s/>',
} }
for test, expect in test_samples.iteritems(): for test, expect in test_samples.items():
assert self.engine._encode_escape_chars(test) == expect assert self.engine._encode_escape_chars(test) == expect
def test_create_test_node(self): def test_create_test_node(self):