From f0ef1734f4a465f39bf99c8b14325eaec41089da Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 23 Apr 2013 19:01:03 +0200 Subject: [PATCH] add a test for force_store_value in read_only mode --- test/test_freeze.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_freeze.py b/test/test_freeze.py index d69b548..ab02f62 100644 --- a/test/test_freeze.py +++ b/test/test_freeze.py @@ -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'