Exemplo n.º 1
0
 def setUp(self):
     """Setup environment for an enabled cache."""
     self.cache = SampleCache()
     self.cache.versions = ['default', 'v2']
     self.cache.cache.clear()
     self.mock_delete = mock.Mock()
     self.cache.cache.delete = self.mock_delete
Exemplo n.º 2
0
 def setUp(self):
     """Shared objects for testing."""
     self.cache = SampleCache()
     self.cache.cache.clear()
Exemplo n.º 3
0
 def setUp(self):
     """Setup environment for an enabled cache."""
     self.cache = SampleCache()
     self.cache.cache.clear()
     self.mock_delete = mock.Mock()
     self.cache.cache.delete = self.mock_delete
Exemplo n.º 4
0
 def setUp(self):
     """Setup environment for a disabled cache."""
     self.cache = SampleCache()