Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 def _reinit_json_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in [1, 2, 3]:
         s.delete('json_test', k)
     return s
Example #4
0
 def _reinit_raw_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in ['a', 'b', 'c']:
         s.delete('test', k)
     return s
Example #5
0
 def _reinit_json_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in [1, 2, 3]:
         s.delete('json_test', k)
     return s
Example #6
0
 def _reinit_raw_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in ['a', 'b', 'c']:
         s.delete('test', k)
     return s