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