Ejemplo n.º 1
0
 def test_cache_remove(self):
     cache = RequestCache()
     cache.put('http://ciao', 'value')
     self.assertEqual(cache.get('http://ciao'), 'value')
     cache.remove('http://ciao')
     self.assertRaises(RequestCacheMissingException, cache.get,
                       'http://ciao')
Ejemplo n.º 2
0
 def test_cache_remove(self):
     cache = RequestCache()
     cache.put("http://ciao", "value")
     self.assertEqual(cache.get("http://ciao"), "value")
     cache.remove("http://ciao")
     self.assertRaises(RequestCacheMissingException, cache.get,
                       "http://ciao")
Ejemplo n.º 3
0
 def test_cache_remove(self):
     cache = RequestCache()
     cache.put('http://ciao', 'value')
     self.assertEqual(cache.get('http://ciao'), 'value')
     cache.remove('http://ciao')
     self.assertRaises(
         RequestCacheMissingException,
         cache.get, 'http://ciao'
     )