comparison Plugins/DicomWeb/Run.py @ 608:ba06331ac8dd

new test for issue #219
author Alain Mazy <am@osimis.io>
date Wed, 24 Jan 2024 13:23:29 +0100
parents 8aa101e126d0
children 9f8276ac1cdd
comparison
equal deleted inserted replaced
607:d743c210cbc8 608:ba06331ac8dd
645 self.assertRaises(Exception, lambda: DoGetMultipart(ORTHANC, '%s/frames/%d' % (uri, 1), 645 self.assertRaises(Exception, lambda: DoGetMultipart(ORTHANC, '%s/frames/%d' % (uri, 1),
646 headers = { 'Accept' : 'multipart/related; type=nope' })) 646 headers = { 'Accept' : 'multipart/related; type=nope' }))
647 647
648 self.assertRaises(Exception, lambda: DoGetMultipart(ORTHANC, '%s/frames/%d' % (uri, 1), 648 self.assertRaises(Exception, lambda: DoGetMultipart(ORTHANC, '%s/frames/%d' % (uri, 1),
649 headers = { 'Accept' : 'nope' })) 649 headers = { 'Accept' : 'nope' }))
650
651
652 def test_bugzilla_219(self):
653 # WADO-RS RetrieveFrames shall transcode ExplicitBigEndian to ExplicitLittleEndian
654 # https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=219
655
656 if IsPluginVersionAbove(ORTHANC, "dicom-web", 1, 17, 0):
657
658 UploadInstance(ORTHANC, 'TransferSyntaxes/1.2.840.10008.1.2.2.dcm')
659
660 r = DoGetMultipart(ORTHANC, '/dicom-web/studies/1.2.840.113619.2.21.848.246800003.0.1952805748.3/series/1.2.840.113619.2.21.24680000.700.0.1952805748.3.0/instances/1.2.840.1136190195280574824680000700.3.0.1.19970424140438/frames/1', {}, True )
661 self.assertIn('transfer-syntax=1.2.840.10008.1.2.1', r[0][1]['Content-Type'])
650 662
651 663
652 def test_qido_fields(self): 664 def test_qido_fields(self):
653 UploadInstance(ORTHANC, 'DummyCT.dcm') 665 UploadInstance(ORTHANC, 'DummyCT.dcm')
654 666