예제 #1
0
def test_get_invalid():
    config = BlessConfig()
    config.blessconfig = {'foo': 'bar'}
    with pytest.raises(ValueError):
        config.get('DOESNOTEXIST')
예제 #2
0
def test_get():
    config = BlessConfig()
    config.blessconfig = {'foo': 'bar'}
    assert config.get('foo') == 'bar'