Esempio n. 1
0
    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"))
Esempio n. 2
0
    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'))
Esempio n. 3
0
    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"))
Esempio n. 4
0
    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'))