comparison Tests/Tests.py @ 687:edf6ce075823

fix
author Alain Mazy <am@orthanc.team>
date Tue, 10 Sep 2024 14:33:04 +0200
parents 992f0e405c4f
children b58f639aee60
comparison
equal deleted inserted replaced
686:992f0e405c4f 687:edf6ce075823
1905 'SOPClassUID' : '1.2.840.10008.5.1.4.1.1.1', 1905 'SOPClassUID' : '1.2.840.10008.5.1.4.1.1.1',
1906 'PixelData' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==' # red dot in RGBA 1906 'PixelData' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==' # red dot in RGBA
1907 } 1907 }
1908 1908
1909 if IsOrthancVersionAbove(_REMOTE, 1, 12, 5): 1909 if IsOrthancVersionAbove(_REMOTE, 1, 12, 5):
1910 payload['TimeRange'] = '3.12\\4.12', # https://discourse.orthanc-server.org/t/multiplicity-on-dicom-tags/5144 1910 payload['TimeRange'] = '3.12\\4.12' # https://discourse.orthanc-server.org/t/multiplicity-on-dicom-tags/5144
1911 1911
1912 i = DoPost(_REMOTE, '/tools/create-dicom', 1912 i = DoPost(_REMOTE, '/tools/create-dicom',
1913 json.dumps(payload)) 1913 json.dumps(payload))
1914 1914
1915 self.assertEqual('Jodogne', DoGet(_REMOTE, '/instances/%s/content/PatientName' % i['ID']).strip()) 1915 self.assertEqual('Jodogne', DoGet(_REMOTE, '/instances/%s/content/PatientName' % i['ID']).strip())