Ejemplo n.º 1
0
 def test_ok(self):
     payload = self.payload()
     data = verify_request(self.request(payload=json.dumps(payload)))
     for k, v in payload.items():
         eq_(data[k], payload[k],
             'key %r did not match: source: %r != decoded: %r'
             % (k, data[k], payload[k]))
Ejemplo n.º 2
0
 def verify(self, request=None, update=None, update_request=None):
     if not request:
         payload = self.payload()
         if update_request:
             payload["request"].update(update_request)
         if update:
             payload.update(update)
         request = self.request(payload=json.dumps(payload))
     return verify_request(request)