diff 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
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py	Tue Mar 03 17:18:13 2020 +0100
+++ b/Plugins/DicomWeb/Run.py	Tue Mar 03 17:20:13 2020 +0100
@@ -1069,12 +1069,21 @@
                                       headers = { 'Accept' : 'application/json, application/dicom+json' })))
         
         self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
+                                      headers = { 'Accept' : 'application/json' })))
+        
+        self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
+                                      headers = { 'Accept' : 'application/dicom+json' })))
+        
+        self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
                                       headers = { 'Accept' : 'toto, application/dicom+json' })))
         
         self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
                                       headers = { 'Accept' : 'application/json, tata' })))
         
         self.assertRaises(Exception, lambda: DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
+                                                   headers = { 'Accept' : 'toto' }))
+        
+        self.assertRaises(Exception, lambda: DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % study,
                                                    headers = { 'Accept' : 'toto, tata' }))