comparison Tests/Toolbox.py @ 10:5f73008bb873

tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jun 2015 13:38:32 +0200
parents 3670535fbd4b
children 7b69a561f4d3
comparison
equal deleted inserted replaced
9:3670535fbd4b 10:5f73008bb873
127 return json.loads(content) 127 return json.loads(content)
128 except: 128 except:
129 return content 129 return content
130 130
131 def DoPut(orthanc, uri, data = {}, contentType = ''): 131 def DoPut(orthanc, uri, data = {}, contentType = ''):
132 return DoPutOrPost(orthanc, uri, 'PUT', data, contentType) 132 return _DoPutOrPost(orthanc, uri, 'PUT', data, contentType, {})
133 133
134 def DoPost(orthanc, uri, data = {}, contentType = '', headers = {}): 134 def DoPost(orthanc, uri, data = {}, contentType = '', headers = {}):
135 return _DoPutOrPost(orthanc, uri, 'POST', data, contentType, headers) 135 return _DoPutOrPost(orthanc, uri, 'POST', data, contentType, headers)
136 136
137 def UploadInstance(orthanc, filename): 137 def UploadInstance(orthanc, filename):