Example #1
0
    def test_missing_store(self):
        """
        Tests that we get an exception when we try to get a non-existent store.
        """

        try:
            s = StoreClient('does-not-exist', [('localhost', 6666)])
        except VoldemortException:
            self.assertTrue(True)
            return

        self.assertTrue(False)
Example #2
0
 def _reinit_json_client(self):
     s = StoreClient('json_test', [('localhost', 6666)])
     for k in [1, 2, 3]:
         s.delete(k)
     return s
Example #3
0
 def _reinit_raw_client(self):
     s = StoreClient('test', [('localhost', 6666)])
     for k in ['a', 'b', 'c']:
         s.delete(k)
     return s