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