'Test IncDecError.'

@pytest.mark.parametrize('url,    msg,    expected_str', [('http://example.com', 'Invalid', 'Invalid:    http://example.com')])
def test_incdec_error(self, url, msg, expected_str):

    url = QUrl(url)
    with pytest.raises(urlutils.IncDecError) as excinfo:
        raise urlutils.IncDecError(msg, url)
    assert (excinfo.value.url == url)
    assert (str(excinfo.value) == expected_str)
