Add missing test for configtypes.Key

This commit is contained in:
Florian Bruhin 2018-12-05 17:23:09 +01:00
parent a9c1fc665f
commit 7bddb7867b

View File

@ -2123,6 +2123,9 @@ class TestKey:
with pytest.raises(configexc.ValidationError): with pytest.raises(configexc.ValidationError):
klass().to_py(val) klass().to_py(val)
def test_normalized(self, klass):
assert klass().from_obj('<ctrl-q>') == '<Ctrl+q>'
class TestUrlPattern: class TestUrlPattern: