Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lsankar4033 committed Aug 13, 2020
1 parent fbf139e commit e2ec241
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,3 @@ def parse_response(resp):
return (1, None)

return (0, resp['chunk']['data'])

class TestBase:

def __init__(self, args, cw=ConsoleWriter(None, None)):
self.args = args
self.cw = cw
self.return_code = 0

def parse_rumor_response(self, resp):
if not('chunk' in resp and 'data' in resp['chunk']):
self.cw.info(f'received bad response: {resp}', file=sys.stderr)
self.return_code = 1
return None

return resp['chunk']['data']

def compare_containers(self, expected: Container, actual: Container):
if expected != actual:
error_str = ''
for field in expected.fields():
self.compare_vals(getattr(expected, field), getattr(actual, field), field)


def compare_vals(self, expected, actual, name):
if expected != actual:
self.cw.info(f'{name} -- expected {expected} actual {actual}')
self.return_code = 1

0 comments on commit e2ec241

Please sign in to comment.