File: test_socket.py

package info (click to toggle)
python-binary-memcached 0.31.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 304 kB
  • sloc: python: 1,723; makefile: 17
file content (12 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
import bmemcached
import test_simple_functions


class SocketMemcachedTests(test_simple_functions.MemcachedTests):
    """
    Same tests as above, just make sure it works with sockets.
    """

    def setUp(self):
        self.server = '/tmp/memcached.sock'
        self.client = bmemcached.Client(self.server, 'user', 'password')