def test_missing_store(self): """ Tests that we get an exception when we try to get a non-existent store. """ s = ServerClient([('localhost', 6666)]) self.assertTrue('does-not-exit' not in s.stores) try: s.get('does-not-exist', 1) except VoldemortException as ex: self.assertTrue('does-not-exist' in ex.msg)
def _reinit_json_client(self): s = ServerClient([('localhost', 6666)]) for k in [1, 2, 3]: s.delete('json_test', k) return s
def _reinit_raw_client(self): s = ServerClient([('localhost', 6666)]) for k in ['a', 'b', 'c']: s.delete('test', k) return s