comparison Plugins/DicomWeb/Run.py @ 274:6b522ef4c3ec

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Mar 2020 17:20:13 +0100
parents afcd550a9216
children 264bb7744679
comparison
equal deleted inserted replaced
273:afcd550a9216 274:6b522ef4c3ec
1067 1067
1068 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study, 1068 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1069 headers = { 'Accept' : 'application/json, application/dicom+json' }))) 1069 headers = { 'Accept' : 'application/json, application/dicom+json' })))
1070 1070
1071 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study, 1071 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1072 headers = { 'Accept' : 'application/json' })))
1073
1074 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1075 headers = { 'Accept' : 'application/dicom+json' })))
1076
1077 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1072 headers = { 'Accept' : 'toto, application/dicom+json' }))) 1078 headers = { 'Accept' : 'toto, application/dicom+json' })))
1073 1079
1074 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study, 1080 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1075 headers = { 'Accept' : 'application/json, tata' }))) 1081 headers = { 'Accept' : 'application/json, tata' })))
1082
1083 self.assertRaises(Exception, lambda: DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1084 headers = { 'Accept' : 'toto' }))
1076 1085
1077 self.assertRaises(Exception, lambda: DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study, 1086 self.assertRaises(Exception, lambda: DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
1078 headers = { 'Accept' : 'toto, tata' })) 1087 headers = { 'Accept' : 'toto, tata' }))
1079 1088
1080 1089