def run(self, data): client = CommandClient() command_result = client.execute(data) result = Result() result.expected = data['expected'] result.actual= command_result.stdout # TODO: assertion type result.succeeded = True if result.expected == result.actual else False return result
def command(self, index, data): client = CommandClient() self.results[index] = client.execute(data)