MCPcopy Create free account
hub / github.com/brutasse/graphite-api / assertJSON

Method assertJSON

tests/__init__.py:67–69  ·  view source on GitHub ↗
(self, response, data, status_code=200)

Source from the content-addressed store, hash-verified

65 self._cleanup()
66
67 def assertJSON(self, response, data, status_code=200):
68 self.assertEqual(response.status_code, status_code)
69 self.assertEqual(json.loads(response.data.decode('utf-8')), data)
70
71 def write_series(self, series, retentions=[(1, 180)]):
72 file_name = os.path.join(

Callers 8

test_findMethod · 0.80
test_find_validationMethod · 0.80
test_expandMethod · 0.80
test_noopMethod · 0.80
test_indexMethod · 0.80
test_metrics_indexMethod · 0.80

Calls 1

loadsMethod · 0.80

Tested by 8

test_findMethod · 0.64
test_find_validationMethod · 0.64
test_expandMethod · 0.64
test_noopMethod · 0.64
test_indexMethod · 0.64
test_metrics_indexMethod · 0.64