Skip to content

Commit f4d70f2

Browse files
author
Shakeel Mohamed
committed
Removed temp code/comments, uncommented useful code
1 parent c789da4 commit f4d70f2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/modularinput/modularinput_testlib.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,10 @@ def xml_compare(expected, found):
7272
return False
7373

7474

75-
#todo: uncomment this bit, remove import & explicit loop
76-
# compare children
77-
#if not all([xml_compare(a, b) for a, b in zip(expected_children, found_children)]):
78-
# return False
79-
80-
import xml.etree.ElementTree as ET
8175

82-
for i, child in enumerate(expected_children):
83-
if not xml_compare(child, found_children[i]):
84-
return False
76+
# compare children
77+
if not all([xml_compare(a, b) for a, b in zip(expected_children, found_children)]):
78+
return False
8579

8680
# compare element text if it exists, else elements are equal
8781
if expected.text and expected.text.strip() != "":

0 commit comments

Comments
 (0)