diff tests/test.py @ 506:dffa692751b1

Implement clear_cache() for the configuration
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 18 Dec 2021 11:06:34 +0100
parents 4f90e1eb7af8
children ad1e630ba736
line wrap: on
line diff
--- a/tests/test.py	Sat Dec 18 02:36:30 2021 +0100
+++ b/tests/test.py	Sat Dec 18 11:06:34 2021 +0100
@@ -828,6 +828,10 @@
 
         self.assertEqual([u"key1", u"key2", u"tree1"], s)
 
+    def test45_clear_cache(self):
+        cfg = self._load(os.path.join(TESTDATADIR, "conf10.py"))
+        cfg.clear_cache()
+
 
 class T02LoadAndMerge(_T02MixinLoadAndMerge, unittest.TestCase):