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.add(42, self.memcache_key, None) self.assertEqual((42, self.memcache_key), sidebar.get(None, 'id'))