Example #1
0
  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
Example #2
0
 def command(self, index, data):
   client = CommandClient()
   self.results[index] = client.execute(data)