Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (25 sloc) 1.033 kB
"""Tests. They want YOU!!"""
import unittest
import pylibmc
from pylibmc.test import make_test_client
class PylibmcTestCase(unittest.TestCase):
memcached_client = pylibmc.Client
memcached_server_type = "tcp"
memcached_host = "127.0.0.1"
memcached_port = "11211"
def setUp(self):
self.mc = make_test_client(cls=self.memcached_client,
server_type=self.memcached_server_type,
host=self.memcached_host,
port=self.memcached_port)
def tearDown(self):
self.mc.disconnect_all()
del self.mc
def dump_infos():
if hasattr(_pylibmc, "__file__"):
print "Starting tests with _pylibmc at", _pylibmc.__file__
else:
print "Starting tests with static _pylibmc:", _pylibmc
print "Reported libmemcached version:", _pylibmc.libmemcached_version
print "Reported pylibmc version:", _pylibmc.__version__
print "Support compression:", _pylibmc.support_compression
Jump to Line
Something went wrong with that request. Please try again.