def test_getNextVersionAfterYearChange(self):
        now = date.today()
        major = now.year - VERSION_OFFSET
        version = Version("twisted", major - 1, 9, 0)
        self.assertEqual(
            getNextVersion(version, prerelease=False, patch=False, today=now),
            Version("twisted", major, 0, 0))
When calculating the next version to release when a release is
dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/ChangeVersionTests.test_getNextVersionAfterYearChange