'Test reading config.'

def test_read_config_valid(self, keyparser):

    keyparser.read_config('test')
    assert ('ccc' in keyparser.bindings)
    assert ('ctrl+a' in keyparser.special_bindings)
    keyparser.read_config('test2')
    assert ('ccc' not in keyparser.bindings)
    assert ('ctrl+a' not in keyparser.special_bindings)
    assert ('foo' in keyparser.bindings)
    assert ('ctrl+x' in keyparser.special_bindings)
