Skip to content

Commit 0e696d6

Browse files
author
Khizar Alam
committed
Remove redundent code and fix spacing
1 parent 1be4994 commit 0e696d6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/HttpLibrary/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,6 @@ def response_body_should_contain(self, should_contain):
516516
'"%s" should have contained "%s", but did not.' % (
517517
self.response.body, should_contain)
518518

519-
def json_data_body_should_contain(self,should_contain):
520-
521-
response = load_json(self.response.body)['data']
522-
should_contain_json = load_json(should_contain)
523-
assert should_contain_json in response, \
524-
'"%s" should have contained "%s", but did not.' % (
525-
response, should_contain_json)
526-
527-
528519
def log_response_body(self, log_level='INFO'):
529520
"""
530521
Logs the response body.

src/HttpLibrary/livetest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _do_httplib_request(self, req):
134134
headers = {}
135135

136136
for name, val in req.headers.items():
137-
if sys.version_info[0]==2 and isinstance(name, unicode):
137+
if sys.version_info[0] == 2 and isinstance(name, unicode):
138138
name = str(name)
139139
headers[name] = val
140140
if req.scheme not in self.conn:

0 commit comments

Comments
 (0)