'Test if incdec_number rejects a wrong segment.'

def test_wrong_segment(self):

    with pytest.raises(urlutils.IncDecError):
        urlutils.incdec_number(QUrl('http://example.com'), 'increment', segments={'foobar'})
