TestMemoryCache¶
-
class
tests.test_cache.
TestMemoryCache
(methodName='runTest')[source]¶ MemoryCache
Test cases for caching related functions/classes inprivex.helpers.cache
-
__init__
(methodName='runTest') Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
Methods¶
Methods
Set the current cache adapter to an instance of MemoryCache() and make it available through |
|
Hook method for deconstructing the class fixture after running all tests in the class. |
|
Test that cache keys are removed after the specified timeout |
|
Test that cache.remove correctly removes cache keys |
|
Test basic cache.set and cache.get |
|
Test that cache.update_timeout extends timeouts correctly |
|
Test that cache.update_timeout raises |
Attributes¶
Attributes
A list of all cache keys used during the test case, so they can be removed by |