Auto-generated patch by python-black
[integration/test.git] / tools / odl-mdsal-clustering-tests / clustering-functional-test / util.py
index e1667dc48d9bee41d239a10ec6a01a161d55c696..2b1751937f368380af4db559db7007364d9f330b 100644 (file)
@@ -10,7 +10,7 @@ __email__ = "syedbahm@cisco.com"
 def get(url, userId, password):
     """Helps in making GET REST calls"""
     headers = {}
-    headers['Accept'] = 'application/xml'
+    headers["Accept"] = "application/xml"
 
     # Send the GET request
     req = requests.get(url, None, headers)
@@ -22,7 +22,7 @@ def get(url, userId, password):
 def nonprintpost(url, userId, password, data):
     """Helps in making POST REST calls without outputs"""
     headers = {}
-    headers['Content-Type'] = 'application/json'
+    headers["Content-Type"] = "application/json"
     # headers['Accept']= 'application/xml'
 
     resp = requests.post(url, data.encode(), headers=headers)
@@ -35,7 +35,7 @@ def post(url, userId, password, data):
     print("post request with url " + url)
     print("post request with data " + data)
     headers = {}
-    headers['Content-Type'] = 'application/json'
+    headers["Content-Type"] = "application/json"
     # headers['Accept']= 'application/xml'
 
     resp = requests.post(url, data.encode(), headers=headers)