예제 #1
0
 def _no_stored_values_for(self, pattern):
     self.assertEqual([], kvs.mget(pattern))
예제 #2
0
 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))))
예제 #3
0
 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))))
예제 #4
0
 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))))
예제 #5
0
 def _no_stored_values_for(self, pattern):
     self.assertEqual([], kvs.mget(pattern))
예제 #6
0
 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))))
예제 #7
0
 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(".", ""))))