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')
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")
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' )