def _test(self, keys, job_id): """Perform the actual test. This involves 1 - populating the kvs with the keys passed 2 - making sure step 1 worked 3 - calling the function under test (release_data_from_kvs()) 4 - ascertaining the keys in question have been purged from kvs. """ self._populate_data_in_kvs(job_id, keys) self.assertEqual(sorted(k % job_id for k in keys), sorted(self._keys_found(job_id, keys))) classical.release_data_from_kvs(job_id, *self.ARGS) self.assertFalse(self._keys_found(job_id, keys))
def _test(self, keys, job_id): """Perform the actual test. This involves 1 - populating the kvs with the keys passed 2 - making sure step 1 worked 3 - calling the function under test (release_data_from_kvs()) 4 - ascertaining the keys in question have been purged from kvs. """ self._populate_data_in_kvs(job_id, keys) self.assertEqual(sorted(k % job_id for k in keys), sorted(self._keys_found(job_id, keys))) classical.release_data_from_kvs(job_id, *self.ARGS) self.assertFalse(self._keys_found(job_id, keys))
def _test(self, keys, job_id): """Perform the actual test. This involves 1 - populating the kvs with the keys passed 2 - making sure step 1 worked 3 - calling the function under test (release_data_from_kvs()) 4 - ascertaining the keys in question have been purged from kvs. """ self._populate_data_in_kvs(job_id, keys) self.assertEqual(sorted(k % job_id for k in keys), sorted(self._keys_found(job_id, keys))) pps = classical.PSHA_KVS_PURGE_PARAMS( job_id, self.POES, self.QUANTILES, self.REALIZATIONS, self.SITES) classical.release_data_from_kvs(pps) self.assertFalse(self._keys_found(job_id, keys))
def _test(self, keys, job_id): """Perform the actual test. This involves 1 - populating the kvs with the keys passed 2 - making sure step 1 worked 3 - calling the function under test (release_data_from_kvs()) 4 - ascertaining the keys in question have been purged from kvs. """ self._populate_data_in_kvs(job_id, keys) self.assertEqual(sorted(k % job_id for k in keys), sorted(self._keys_found(job_id, keys))) pps = classical.PSHA_KVS_PURGE_PARAMS(job_id, self.POES, self.QUANTILES, self.REALIZATIONS, self.SITES) classical.release_data_from_kvs(pps) self.assertFalse(self._keys_found(job_id, keys))