# HG changeset patch # User Sebastien Jodogne # Date 1534408655 -7200 # Node ID 4a533d00308073996fed624bcaedaa75b8291bf7 # Parent b90e001d43bdd9cac7724f3b4af629cdc6989bb2 test_find_group_length diff -r b90e001d43bd -r 4a533d003080 Tests/Tests.py --- 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)