Fix iteritems() call not compatible with python3.
This commit is contained in:
parent
278f09f080
commit
22adeb1dc3
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue