#NEWLINE# def test_getNextVersion( self ) : #NEWLINE# #INDENT# '\n        When calculating the next version to release when a release is\n        happening in the same year as the last release, the minor version\n        number is incremented.\n        ' #NEWLINE# now = date . today ( ) #NEWLINE# major = ( now . year - VERSION_OFFSET ) #NEWLINE# version = Version ( 'twisted' , major , 9 , 0 ) #NEWLINE# self . assertEquals ( getNextVersion ( version , now = now ) , Version ( 'twisted' , major , 10 , 0 ) )