Exemplo n.º 1
0
 def op(url, **kw):
     response, content = request_and_verify(self, 200, url, "GET", **kw)
     feed_hash = json.loads(content)
     missing = Hashes.missing_fields(feed_hash,
                                     ("url", "source", "active"))
     if missing:
         self.fail("missing fields: %s" % missing)
Exemplo n.º 2
0
 def _op(url, **kw):
     response, content = request_and_verify(self, 200, url, "GET", **kw)
     artifact_hash = json.loads(content)
     missing = Hashes.missing_fields(
         artifact_hash, ('guid', 'source', 'content-type', 'modified',
                         'modified-by', 'body'))
     if missing:
         self.fail("missing artifact fields: %s" % missing)
Exemplo n.º 3
0
 def _op(url, **kw):
     response, content = request_and_verify(self, 200, url, "GET", **kw)
     artifact_hash = json.loads(content)
     missing = Hashes.missing_fields(artifact_hash, ('guid', 'source', 'content-type', 'modified', 'modified-by', 'body'))
     if missing:
         self.fail("missing artifact fields: %s" % missing)
Exemplo n.º 4
0
 def op(url, **kw):
     response, content = request_and_verify(self, 200, url, "GET", **kw)
     feed_hash = json.loads(content)
     missing = Hashes.missing_fields(feed_hash, ("url", "source", "active"))
     if missing:
         self.fail("missing fields: %s" % missing)