diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-02-27 12:59:23 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-02-27 13:09:48 +0100 |
commit | 244590f49df33dbbaec87e33ddaa8af7796eb128 (patch) | |
tree | bcc9050b6d9dfa6fc4fe742bd1523337a350c4bd /tests/unit/config/test_configcommands.py | |
parent | 88b50074570a8abcdb5d64ffe18a68923c1b7a11 (diff) | |
download | qutebrowser-244590f49df33dbbaec87e33ddaa8af7796eb128.tar.gz qutebrowser-244590f49df33dbbaec87e33ddaa8af7796eb128.zip |
Handle unknown keys with :bind/:unbind
Diffstat (limited to 'tests/unit/config/test_configcommands.py')
-rw-r--r-- | tests/unit/config/test_configcommands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index 0e2427c06..a74b446d1 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -557,12 +557,18 @@ class TestBind: # :bind --default foobar ('bind', ['foobar'], {'default': True}, "Can't find binding 'foobar' in normal mode"), + # :bind <blub> nop + ('bind', ['<blub>', 'nop'], {}, + "Could not parse '<blub>': Got unknown key!"), # :unbind foobar ('unbind', ['foobar'], {}, "Can't find binding 'foobar' in normal mode"), # :unbind --mode=wrongmode x ('unbind', ['x'], {'mode': 'wrongmode'}, 'Invalid mode wrongmode!'), + # :unbind <blub> + ('unbind', ['<blub>'], {}, + "Could not parse '<blub>': Got unknown key!"), ]) def test_bind_invalid(self, commands, command, args, kwargs, expected): |