Example #1
0
  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'))
Example #2
0
    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'))
Example #3
0
  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'))
Example #4
0
    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'))