def from_data(cls, data): headers = get_val(data, 'headers', dict()) body = get_val(data, 'body', None) cookies = get_val(data, 'cookies', dict()) status = get_val(data, 'status') return cls(body, headers, cookies, status)
def properties(self): return get_val(self.step, C.PROPERTIES_KEY)
def payload(self): return get_val(self.step, C.PAYLOAD_KEY)
def tests(self): return get_val(self.step, C.TESTS_KEY)
def name(self): s = '[-]' if self.command: s = '[%s]' % self.command.plugin s += ' %s' % get_val(self.step, C.COMMAND_KEY, '----') return s
def output(self): return get_val(self._results, 'output', dict())