Пример #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)
Пример #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)
Пример #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)
Пример #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)