Пример #1
0
 def request_index_id(self):
     matchers = u"".join([u''.join(
         x.split()).strip() for x in self.contains_matchers() or []])
     return compute_hash(u"".join([self.scenario_name,
                                   matchers,
                                   self.request_path() or "",
                                   self.request_method(),
                                   self.request_query_args() or ""]))
Пример #2
0
 def request_index_id(self):
     matchers = u"".join([
         u''.join(x.split()).strip()
         for x in self.contains_matchers() or []
     ])
     return compute_hash(u"".join([
         self.scenario_name, matchers,
         self.request_path() or "",
         self.request_method(),
         self.request_query_args() or ""
     ]))
Пример #3
0
def response_hash(response_body, stub):
    return compute_hash(u"".join([response_body, str(stub.response_status())]))
Пример #4
0
def response_hash(response_body, stub):
    return compute_hash(u"".join([response_body, str(stub.response_status())]))
Пример #5
0
 def id(self):
     return compute_hash(u"".join([self.request_body(), self.path or "", self.method, self.query]))
Пример #6
0
 def id(self):
     return compute_hash(u"".join(
         [self.request_body(), self.path or "", self.method, self.query]))