def _no_stored_values_for(self, pattern): self.assertEqual([], kvs.mget(pattern))
def _has_computed_quantile_for_site(self, site, value): self.assertTrue(kvs.mget("%s*%s*%s*%s" % (kvs.tokens.QUANTILE_HAZARD_CURVE_KEY_TOKEN, self.job_id, site.hash(), str(value))))
def _has_computed_IML_for_site(self, site, poe): self.assertTrue(kvs.mget("%s*%s*%s*%s" % (kvs.tokens.MEAN_HAZARD_MAP_KEY_TOKEN, self.job_id, site.hash(), str(poe))))
def _has_computed_quantile_for_site(self, site, value): self.assertTrue(kvs.mget("%s*%s*%s*%s*%s" % (kvs.tokens.QUANTILE_HAZARD_CURVE_KEY_TOKEN, self.job_id, site.longitude, site.latitude, str(value))))
def _has_computed_IML_for_site(self, site, poe): self.assertTrue(kvs.mget("%s*%s*%s*%s*%s" % (kvs.tokens.MEAN_HAZARD_MAP_KEY_TOKEN, self.job_id, site.longitude, site.latitude, str(poe))))
def _has_computed_quantile_for_site(self, site, value): self.assertTrue(kvs.mget("%s*%s*%s*%s*%s*" % (kvs.tokens.QUANTILE_HAZARD_CURVE_KEY_TOKEN, self.job_id, site.longitude, site.latitude, str(value).replace(".", ""))))