adds a freeze_everything possibility
[tiramisu.git] / test / test_option_type.py
index bba0845..2525347 100644 (file)
@@ -61,6 +61,16 @@ def make_description_freeze():
                                            intoption, boolop])
     return descr
 
+def test_freeze_whole_config():
+    descr = make_description_freeze()
+    conf = Config(descr)
+    settings.freeze_everything()
+    assert conf.gc.dummy == False
+    raises(TypeError, "conf.gc.dummy = True")
+    settings.un_freeze_everything()
+    conf.gc.dummy = True
+    assert conf.gc.dummy == True
+
 def test_freeze_one_option():
     "freeze an option "
     descr = make_description_freeze()