コード例 #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)