def test_version_bump_invalid_type_name(): v = Version() with expect.raises(ValueError, "Unknown bump_type 'pico'"): v.bump('pico')
def test_version_bump_invalid_type(): v = Version() with expect.raises(ValueError, "Invalid bump_type 'patch' for version (0, 1, 0)"): v.bump('patch')