diff Tests/Tests.py @ 372:e9b03d8f3b78

fix for DCMTK 3.6.6
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 Jan 2021 09:16:18 +0100
parents 24d93b42873a
children f673153f27a4
line wrap: on
line diff
--- a/Tests/Tests.py	Thu Jan 21 17:05:34 2021 +0100
+++ b/Tests/Tests.py	Tue Jan 26 09:16:18 2021 +0100
@@ -2948,11 +2948,18 @@
             self.assertTrue(CompareTags(t, json.loads(f.read()), [
             ]))
 
+
+        # NB: To get the actual value of the "tags" JSON file, use the
+        # following command:
+        # $ curl http://alice:orthanctest@localhost:8042/instances/d29ead49-43e8601d-72f1e922-7de676ee-ea77c2b4/tags
         t = DoGet(_REMOTE, '/instances/%s/tags' % j)
         with open(GetDatabasePath('PrivateTagsFull.json'), 'r') as f:
             a = json.loads(f.read())
             aa = json.dumps(a).replace('2e+022', '2e+22')
-            tt = json.dumps(t).replace('2e+022', '2e+22')
+            tt = (json.dumps(t)
+                  .replace('2e+022', '2e+22')
+                  # The "IllegalPrivatePixelSequence" tag was introduced in DCMTK 3.6.6 dictionary
+                  .replace('IllegalPrivatePixelSequence', 'Unknown Tag & Data'))
             self.assertEqual(aa, tt)