comparison 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
comparison
equal deleted inserted replaced
153:b90e001d43bd 154:4a533d003080
3792 3792
3793 t1 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[0]) 3793 t1 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[0])
3794 t2 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[1]) 3794 t2 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[1])
3795 self.assertEqual('1.2.840.10008.1.2.4.90', t1) 3795 self.assertEqual('1.2.840.10008.1.2.4.90', t1)
3796 self.assertEqual(t1, t2); 3796 self.assertEqual(t1, t2);
3797
3798
3799 def test_find_group_length(self):
3800 # Orthanc <= 1.4.1 fails to answer C-FIND queries that contain
3801 # one of the Generic Group Length tags (*, 0x0000)
3802 a = UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-0001.dcm')['ID']
3803 result = CallFindScu([ '-k', '0008,0052=STUDY', '-k', '0008,0000=80' ])
3804 self.assertFalse('UnableToProcess' in result)
3805 self.assertFalse('E:' in result)