Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(38)  |  Call(37)  |  Derive(1)  |  Import(0)
This is intended to be a client class which implement standard cache interface that common libs do.

src/p/y/python-binary-memcached-HEAD/test/test_compression.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '127.0.0.1:11211'
        self.client = bmemcached.Client(self.server, 'user', 'password')
        self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2)
        self.data = b'this is test data. ' * 32

src/p/y/python-binary-memcached-0.24/test/test_errors.py   python-binary-memcached(Download)
        wasn't a 'key not found' error.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
            mocked_response.return_value = (0, 0, 0, 0, 0, 0x81, 0, 0, 0, 0)
        wasn't a 'key not found' or 'key exists' error.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
            mocked_response.return_value = (0, 0, 0, 0, 0, 0x81, 0, 0, 0, 0)
        successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        client.set('foo', 1)
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
    def testDelete(self):
        """
        Raise MemcachedException if the delete request isn't successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
    def testFlushAll(self):
        """
        Raise MemcachedException if the flush wasn't successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')

src/p/y/python-binary-memcached-HEAD/test/test_errors.py   python-binary-memcached(Download)
        wasn't a 'key not found' error.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
            mocked_response.return_value = (0, 0, 0, 0, 0, 0x81, 0, 0, 0, 0)
        wasn't a 'key not found' or 'key exists' error.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
            mocked_response.return_value = (0, 0, 0, 0, 0, 0x81, 0, 0, 0, 0)
        successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
        client.set('foo', 1)
        with mock.patch.object(bmemcached.client.Protocol, '_get_response') as mocked_response:
    def testDelete(self):
        """
        Raise MemcachedException if the delete request isn't successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')
    def testFlushAll(self):
        """
        Raise MemcachedException if the flush wasn't successful.
        """
        client = bmemcached.Client('127.0.0.1:11211', 'user', 'password')

src/p/y/python-binary-memcached-0.24/test/test_socket.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '/tmp/memcached.sock'
        self.client = bmemcached.Client(self.server, 'user', 'password')
 

src/p/y/python-binary-memcached-HEAD/test/test_socket.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '/tmp/memcached.sock'
        self.client = bmemcached.Client(self.server, 'user', 'password')
 

src/p/y/python-binary-memcached-HEAD/test/test_simple_functions.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '127.0.0.1:11211'
        self.server = '/tmp/memcached.sock'
        self.client = bmemcached.Client(self.server) #, 'user', 'password')
 

src/p/y/python-binary-memcached-HEAD/test/test_error_handling.py   python-binary-memcached(Download)
        self._start_proxy()
 
        self.client = bmemcached.Client(self.server)
 
        # Disable retry delays, so we can disconnect and reconnect from the

src/p/y/python-binary-memcached-0.24/test/test_simple_functions.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '127.0.0.1:11211'
        self.server = '/tmp/memcached.sock'
        self.client = bmemcached.Client(self.server) #, 'user', 'password')
 

src/p/y/python-binary-memcached-0.24/test/test_error_handling.py   python-binary-memcached(Download)
        self._start_proxy()
 
        self.client = bmemcached.Client(self.server)
 
        # Disable retry delays, so we can disconnect and reconnect from the

Previous  1 | 2