Mercurial > hg > orthanc-tests
diff Tests/Tests.py @ 154:4a533d003080
test_find_group_length
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 Aug 2018 10:37:35 +0200 |
parents | ff788c99f1aa |
children | ed3db6386587 |
line wrap: on
line diff
--- a/Tests/Tests.py Wed Jul 18 11:52:22 2018 +0200 +++ b/Tests/Tests.py Thu Aug 16 10:37:35 2018 +0200 @@ -3794,3 +3794,12 @@ t2 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[1]) self.assertEqual('1.2.840.10008.1.2.4.90', t1) self.assertEqual(t1, t2); + + + def test_find_group_length(self): + # Orthanc <= 1.4.1 fails to answer C-FIND queries that contain + # one of the Generic Group Length tags (*, 0x0000) + a = UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-0001.dcm')['ID'] + result = CallFindScu([ '-k', '0008,0052=STUDY', '-k', '0008,0000=80' ]) + self.assertFalse('UnableToProcess' in result) + self.assertFalse('E:' in result)