From ffbf9ece35f77ed5c38e7f7c58b5911e2cf84b5d Mon Sep 17 00:00:00 2001
From: Auke Klazema <klazema@astron.nl>
Date: Mon, 25 Mar 2019 09:32:45 +0000
Subject: [PATCH] SW-609: Fix Exception.message issue in t_srm.py

---
 LTA/LTAIngest/LTAIngestCommon/test/t_srm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/LTA/LTAIngest/LTAIngestCommon/test/t_srm.py b/LTA/LTAIngest/LTAIngestCommon/test/t_srm.py
index 588437e5f8e..dcbcd35d3cf 100755
--- a/LTA/LTAIngest/LTAIngestCommon/test/t_srm.py
+++ b/LTA/LTAIngest/LTAIngestCommon/test/t_srm.py
@@ -24,7 +24,7 @@ class TestSrm(unittest.TestCase):
 
         with self.assertRaises(SrmException) as context:
             get_site_surl('http://nu.nl')
-        self.assertTrue('invalid srm_url' in context.exception.message)
+        self.assertTrue('invalid srm_url' in str(context.exception))
 
     def test_path_in_site(self):
         self.assertEqual('/pnfs/grid.sara.nl/data/lofar/ops/projects/lc10_010/658346/L658346_SB019_uv.MS_8190b749.tar',
@@ -42,7 +42,7 @@ class TestSrm(unittest.TestCase):
 
         with self.assertRaises(SrmException) as context:
             get_path_in_site('http://nu.nl')
-        self.assertTrue('invalid srm_url' in context.exception.message)
+        self.assertTrue('invalid srm_url' in str(context.exception))
 
     def test_dir_path_in_site(self):
         self.assertEqual('/pnfs/grid.sara.nl/data/lofar/ops/projects/lc10_010/658346',
-- 
GitLab