Module: check_mk
Branch: master
Commit: b07fdd5f394749750093d9f65f7cd0bbddecab9d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b07fdd5f394749…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 10 14:47:14 2017 +0200
cmk_base caching: test_populated - added test for clearing of caches
Change-Id: I1be157834f42394bf6a922dad97366a9e9e30bcd
---
tests/cmk_base/test_caching.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/cmk_base/test_caching.py b/tests/cmk_base/test_caching.py
index 26deb00..78ca4ed 100644
--- a/tests/cmk_base/test_caching.py
+++ b/tests/cmk_base/test_caching.py
@@ -79,13 +79,19 @@ def test_populated():
assert not cache.is_populated()
cache.set_populated()
assert cache.is_populated()
+ cache.clear()
+ assert not cache.is_populated()
cache = mgr.get_dict("test2")
assert not cache.is_populated()
cache.set_populated()
assert cache.is_populated()
+ cache.clear()
+ assert not cache.is_populated()
cache = mgr.get_list("test3")
assert not cache.is_populated()
cache.set_populated()
assert cache.is_populated()
+ cache.clear()
+ assert not cache.is_populated()