diff --git a/integration-tests/test_openbis_sync.py b/integration-tests/test_openbis_sync.py index d0e1d4d4958906c77fe8b58aca988ffc96ce55fc..0dd34b266c98f012849f48d0afedbc25283fce55 100755 --- a/integration-tests/test_openbis_sync.py +++ b/integration-tests/test_openbis_sync.py @@ -1,6 +1,7 @@ #!/usr/bin/python # encoding=utf8 import os +import re import shutil import settings import systemtest.testcase @@ -191,9 +192,12 @@ class TestCase(systemtest.testcase.TestCase): self.fail("The entity graphs on datasource and harvester are not equal.See %s for details" % os.path.join(destination, "diff.txt")) def readLinesFromFile(self, file): - with open(file, 'rb') as output: - content = output.readlines() - return content + temp = [] + with open(file, 'rb') as f: + for line in f: + #content = output.readlines() + temp.append(re.sub('DS1_', '', line)) + return temp def writeResponseToFile(self, datasource_graph_response, file1): with open(file1, 'wb') as output: