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 testFlush(self): """Test that getting after putting and flushing returns None. """ sidebar.add(42, self.memcache_key, None) sidebar.flush('id') self.assertEqual((None, self.memcache_key), sidebar.get(None, '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 testGet(self): """Test that get without setting something returns None. """ 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 testGet(self): """Test that get without setting something returns None. """ self.assertEqual((None, self.memcache_key), sidebar.get('id'))
def testGetPut(self): """Test that getting after putting gives back what you put in. """ sidebar.add(42, self.memcache_key, None) self.assertEqual((42, self.memcache_key), sidebar.get(None, 'id'))