예제 #1
0
def test_is_writable_in_low_priority_source():
    config = StackedConfig(DictSource(), DictSource(readonly=True))

    assert config.is_writable() is True
예제 #2
0
def test_is_writable(readonly):
    config = StackedConfig(DictSource(readonly=readonly))

    assert config.is_writable() is not readonly