def test_is_writable_in_low_priority_source(): config = StackedConfig(DictSource(), DictSource(readonly=True)) assert config.is_writable() is True
def test_is_writable(readonly): config = StackedConfig(DictSource(readonly=readonly)) assert config.is_writable() is not readonly