コード例 #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')
コード例 #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")
コード例 #3
0
ファイル: test_cache.py プロジェクト: BabisK/python-taiga
 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'
     )