#NEWLINE# def test_getNextVersionPreRelease( self ) : #NEWLINE# #INDENT# '\n        L{getNextVersion} updates the major to the current year, and resets the\n        minor when creating a pre-release.\n        ' #NEWLINE# now = date . today ( ) #NEWLINE# major = ( now . year - VERSION_OFFSET ) #NEWLINE# version = Version ( 'twisted' , 3 , 9 , 0 ) #NEWLINE# self . assertEqual ( getNextVersion ( version , prerelease = True , patch = False , today = now ) , Version ( 'twisted' , major , 0 , 0 , 1 ) )