Skip to content
Snippets Groups Projects
Commit ffbf9ece authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix Exception.message issue in t_srm.py

parent 804118cf
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class TestSrm(unittest.TestCase): ...@@ -24,7 +24,7 @@ class TestSrm(unittest.TestCase):
with self.assertRaises(SrmException) as context: with self.assertRaises(SrmException) as context:
get_site_surl('http://nu.nl') 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): 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', 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): ...@@ -42,7 +42,7 @@ class TestSrm(unittest.TestCase):
with self.assertRaises(SrmException) as context: with self.assertRaises(SrmException) as context:
get_path_in_site('http://nu.nl') 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): def test_dir_path_in_site(self):
self.assertEqual('/pnfs/grid.sara.nl/data/lofar/ops/projects/lc10_010/658346', self.assertEqual('/pnfs/grid.sara.nl/data/lofar/ops/projects/lc10_010/658346',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment