diff Tests/Toolbox.py @ 239:8980bd19e31d

dicomweb: test_allowed_methods
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Jun 2019 21:38:06 +0200
parents 0f03ee6ffa80
children 24e5c8ca9440
line wrap: on
line diff
--- a/Tests/Toolbox.py	Wed May 29 17:49:02 2019 +0200
+++ b/Tests/Toolbox.py	Tue Jun 11 21:38:06 2019 +0200
@@ -111,7 +111,7 @@
     (resp, content) = DoGetRaw(orthanc, uri, data = data, body = body, headers = headers)
 
     if not (resp.status in [ 200 ]):
-        raise Exception(resp.status)
+        raise Exception(resp.status, resp)
     else:
         return _DecodeJson(content)
 
@@ -134,7 +134,7 @@
                                  body = body,
                                  headers = headers)
     if not (resp.status in [ 200, 302 ]):
-        raise Exception(resp.status)
+        raise Exception(resp.status, resp)
     else:
         return _DecodeJson(content)
 
@@ -145,7 +145,7 @@
 
     resp, content = http.request(orthanc['Url'] + uri, 'DELETE')
     if not (resp.status in [ 200 ]):
-        raise Exception(resp.status)
+        raise Exception(resp.status, resp)
     else:
         return _DecodeJson(content)