# HG changeset patch # User Sebastien Jodogne # Date 1611648978 -3600 # Node ID e9b03d8f3b787baeea7e2883697d1323463c9fad # Parent 6941a4f449cc02752b68b190166ebf3c41426179 fix for DCMTK 3.6.6 diff -r 6941a4f449cc -r e9b03d8f3b78 Tests/Tests.py --- 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)