Skip to content


[server] Fail test when expected and reference have different number …
Browse files Browse the repository at this point in the history
…of lines
  • Loading branch information
elpaso committed May 6, 2017
1 parent a882a3b commit a46e9a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/python/
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def assertXMLEqual(self, response, expected, msg=''):
response_lines = response.splitlines()
expected_lines = expected.splitlines()
line_no = 1
self.assertEqual(len(expected_lines), len(response_lines), "Expected and response have different number of lines!")
for expected_line in expected_lines:
expected_line = expected_line.strip()
response_line = response_lines[line_no - 1].strip()
Expand Down

0 comments on commit a46e9a5

Please sign in to comment.