def testConnectCloseQuery(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() try: r = c.set("jonas", "kaka", 0, False) assert False except: pass
def testConnectCloseQuery(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() try: r = c.set("jonas", "kaka", 0, False) assert False except: pass
def testConnectDNSFails(self): c = Client("flensost:12111") try: c.connect() assert False except: pass c.disconnect() pass
def testConnectFails(self): c = Client("130.244.1.1:31337") try: c.connect() assert False except: pass c.disconnect() pass
def testConnectDNSFails(self): c = Client("flensost:12111") try: c.connect() assert False except: pass c.disconnect() pass
def testConnectFails(self): c = Client("130.244.1.1:31337") try: c.connect() assert False except: pass c.disconnect() pass
def testConnectTwice(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() self.assertEquals(False, c.is_connected()) try: c.connect() assert False except (RuntimeError): pass pass
def testConnectTwice(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() self.assertEquals(False, c.is_connected()) try: c.connect() assert False except (RuntimeError): pass pass
def testConnectDNSOK(self): c = Client("localhost:11211") c.connect() c.disconnect() pass
def testDisconnect(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() self.assertEquals(False, c.is_connected()) pass
def testConnectDNSOK(self): c = Client("localhost:11211") c.connect() c.disconnect() pass
def testDisconnect(self): c = Client(MEMCACHED_ADDRESS) c.connect() c.disconnect() self.assertEquals(False, c.is_connected()) pass