add a test for force_store_value in read_only mode
authorEmmanuel Garette <egarette@cadoles.com>
Tue, 23 Apr 2013 17:01:03 +0000 (19:01 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Tue, 23 Apr 2013 17:01:03 +0000 (19:01 +0200)
test/test_freeze.py

index d69b548..ab02f62 100644 (file)
@@ -144,3 +144,12 @@ def test_force_store_value():
     assert conf.getowner('wantref') == 'default'
     conf.wantref
     assert conf.getowner('wantref') == 'user'
+
+
+def test_force_store_value_ro():
+    descr = make_description_freeze()
+    conf = Config(descr)
+    conf.read_only()
+    assert conf.getowner('wantref') == 'default'
+    conf.wantref
+    assert conf.getowner('wantref') == 'user'