def test_empty_config():
    cfg = Config()
    pytest.raises(KeyError, cfg.section, 'notexist')
    cfg.add_section('my', {'a': 'b'})
    assert cfg.section('my')['a'] == 'b'