'Test incdec_number with leading zeroes.'

@pytest.mark.parametrize('number,    expected,    incdec', [('01', '02', 'increment'), ('09', '10', 'increment'), ('009', '010', 'increment'), ('02', '01', 'decrement'), ('10', '9', 'decrement'), ('010', '009', 'decrement')])
def test_incdec_leading_zeroes(self, number, expected, incdec):

    url = 'http://example.com/{}'
    base_url = QUrl(url.format(number))
    expected_url = QUrl(url.format(expected))
    new_url = urlutils.incdec_number(base_url, incdec, segments={'path'})
    assert (new_url == expected_url)
