def testFlush(self): """Test that getting after putting and flushing returns None. """ sidebar.put(42, self.memcache_key) sidebar.flush("id") self.assertEqual((None, self.memcache_key), sidebar.get("id"))
def testFlush(self): """Test that getting after putting and flushing returns None. """ sidebar.put(42, self.memcache_key) sidebar.flush('id') self.assertEqual((None, self.memcache_key), sidebar.get('id'))
def testGetPut(self): """Test that getting after putting gives back what you put in. """ sidebar.put(42, self.memcache_key) self.assertEqual((42, self.memcache_key), sidebar.get("id"))
def testGetPut(self): """Test that getting after putting gives back what you put in. """ sidebar.put(42, self.memcache_key) self.assertEqual((42, self.memcache_key), sidebar.get('id'))