add a test for force_store_value in read_only mode
This commit is contained in:
parent
2e21f13387
commit
f0ef1734f4
1 changed files with 9 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue