Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 22, 2016
1 parent 82cee03 commit 3df100f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsserver.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ def wms_request_compare(self, request, extra=None, reference_file=None):
expected = f.read() expected = f.read()
f.close() f.close()
# Store the output for debug or to regenerate the reference documents: # Store the output for debug or to regenerate the reference documents:
#""" """
f = open(os.path.dirname(__file__) + '/expected.txt', 'w+') f = open(os.path.dirname(__file__) + '/expected.txt', 'w+')
f.write(expected) f.write(expected)
f.close() f.close()
f = open(os.path.dirname(__file__) + '/response.txt', 'w+') f = open(os.path.dirname(__file__) + '/response.txt', 'w+')
f.write(response) f.write(response)
f.close() f.close()
#""" """
response = re.sub(RE_STRIP_PATH, '', response) response = re.sub(RE_STRIP_PATH, '', response)
expected = re.sub(RE_STRIP_PATH, '', expected) expected = re.sub(RE_STRIP_PATH, '', expected)
self.assertEqual(response, expected, msg="request %s failed.\n Query: %s\n Expected:\n%s\n\n Response:\n%s" % (query_string, request, expected, response)) self.assertEqual(response, expected, msg="request %s failed.\n Query: %s\n Expected:\n%s\n\n Response:\n%s" % (query_string, request, expected, response))
Expand Down

0 comments on commit 3df100f

Please sign in to comment.