From 44ea30b1e09280a0b1a036e52a635d8f83ebb04a Mon Sep 17 00:00:00 2001
From: baloola <baloola-mu@hotmail.com>
Date: Wed, 7 Oct 2020 10:59:54 +0200
Subject: [PATCH] edit the resulted xml

---
 testing/registrar_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/registrar_test.py b/testing/registrar_test.py
index d6ef1c90..54bc3108 100644
--- a/testing/registrar_test.py
+++ b/testing/registrar_test.py
@@ -57,7 +57,7 @@ def compare_links(sftp, product_xml, product):
 
 
     xml_file= report.read()
-    root = ElementTree.fromstring(xml_file.decode('utf-8'))
+    root = ElementTree.fromstring(xml_file.decode('utf-8').strip())
 
     urls = root.findall('{http://www.telespazio.com/CSCDA/CDD/PDAS}URL')
     wms_link = urls[0].find('{http://www.telespazio.com/CSCDA/CDD/PDAS}URL').text
-- 
GitLab