Add test for BackendError

This commit is contained in:
Florian Bruhin 2016-08-03 12:18:15 +02:00
parent 5f5b395343
commit fa7f9955a3

View File

@ -19,6 +19,7 @@
"""Tests for qutebrowser.config.configexc."""
from qutebrowser.config import configexc
from qutebrowser.utils import usertypes
def test_validation_error():
@ -46,3 +47,8 @@ def test_interpolation_syntax_error():
assert e.section == 'sect'
assert e.option == 'opt'
assert str(e) == 'msg'
def test_backend_error():
e = configexc.BackendError(usertypes.Backend.QtWebKit)
assert str(e) == "This setting is not available with the QtWebKit backend!"