コード例 #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)
コード例 #2
0
ファイル: test_client.py プロジェクト: glinmac/voldemort
    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)
コード例 #3
0
 def _reinit_json_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in [1, 2, 3]:
         s.delete('json_test', k)
     return s
コード例 #4
0
 def _reinit_raw_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in ['a', 'b', 'c']:
         s.delete('test', k)
     return s
コード例 #5
0
ファイル: test_client.py プロジェクト: glinmac/voldemort
 def _reinit_json_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in [1, 2, 3]:
         s.delete('json_test', k)
     return s
コード例 #6
0
ファイル: test_client.py プロジェクト: glinmac/voldemort
 def _reinit_raw_client(self):
     s = ServerClient([('localhost', 6666)])
     for k in ['a', 'b', 'c']:
         s.delete('test', k)
     return s