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)
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)
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)