changeset 420:07fbbd3a3fac Orthanc-1.9.4

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Jun 2021 08:02:25 +0200
parents 6a57c4efe38a
children d1a0134e5957
files Tests/Tests.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Jun 23 16:02:08 2021 +0200
+++ b/Tests/Tests.py	Thu Jun 24 08:02:25 2021 +0200
@@ -7047,9 +7047,10 @@
         tags2021b = GetTags(study, { 'DicomVersion' : '2021b' })
         tagsDefault = GetTags(study, {})
 
-        self.assertEqual('Orthanc mainline - PS 3.15-2008 Table E.1-1', tags2008['0012,0063'])
-        self.assertEqual('Orthanc mainline - PS 3.15-2017c Table E.1-1 Basic Profile', tags2017c['0012,0063'])
-        self.assertEqual('Orthanc mainline - PS 3.15-2021b Table E.1-1 Basic Profile', tags2021b['0012,0063'])
+        orthancVersion = DoGet(_REMOTE, '/system') ['Version']
+        self.assertEqual('Orthanc %s - PS 3.15-2008 Table E.1-1' % orthancVersion, tags2008['0012,0063'])
+        self.assertEqual('Orthanc %s - PS 3.15-2017c Table E.1-1 Basic Profile' % orthancVersion, tags2017c['0012,0063'])
+        self.assertEqual('Orthanc %s - PS 3.15-2021b Table E.1-1 Basic Profile' % orthancVersion, tags2021b['0012,0063'])
         self.assertEqual(tagsDefault['0012,0063'], tags2021b['0012,0063'])
 
         for t in [ tags2008, tags2017c, tags2021b, tagsDefault ]: