#NEWLINE# def test_changeAllProjectVersionsPreRelease( self ) : #NEWLINE# #INDENT# '\n        L{changeAllProjectVersions} changes all version numbers in _version.py\n        and README files for all projects as well as in the top-level\n        README file. If the old version was a pre-release, it will change the\n        version in NEWS files as well.\n        ' #NEWLINE# root = FilePath ( self . mktemp ( ) ) #NEWLINE# coreNews = 'Twisted Core 1.0.0pre1 (2009-12-25)\n===============================\n\n' #NEWLINE# webNews = 'Twisted Web 1.0.0pre1 (2009-12-25)\n==================================\n\n' #NEWLINE# structure = { #NEWLINE# #INDENT# 'README.rst' : 'Hi this is 1.0.0pre1.' , #NEWLINE# 'NEWS' : ( coreNews + webNews ) , #NEWLINE# 'twisted' : { #NEWLINE# #INDENT# 'topfiles' : { #NEWLINE# #INDENT# 'README' : 'Hi this is 1.0.0pre1' , #NEWLINE# 'NEWS' : coreNews , #NEWLINE# #UNINDENT# } , #NEWLINE# '_version.py' : genVersion ( 'twisted' , 1 , 0 , 0 , 1 ) , #NEWLINE# 'web' : { #NEWLINE# #INDENT# 'topfiles' : { #NEWLINE# #INDENT# 'README' : 'Hi this is 1.0.0pre1' , #NEWLINE# 'NEWS' : webNews , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . createStructure ( root , coreNews ) #NEWLINE# releaseDate = date ( 2010 , 1 , 1 ) #NEWLINE# changeAllProjectVersions ( root , False , False , releaseDate ) #NEWLINE# coreNews = 'Twisted Core 1.0.0 (2010-01-01)\n===============================\n\n' #NEWLINE# webNews = 'Twisted Web 1.0.0 (2010-01-01)\n==============================\n\n' #NEWLINE# outStructure = { #NEWLINE# #INDENT# 'README.rst' : 'Hi this is 1.0.0.' , #NEWLINE# 'NEWS' : ( coreNews + webNews ) , #NEWLINE# 'twisted' : { #NEWLINE# #INDENT# 'topfiles' : { #NEWLINE# #INDENT# 'README' : 'Hi this is 1.0.0' , #NEWLINE# 'NEWS' : coreNews , #NEWLINE# #UNINDENT# } , #NEWLINE# '_version.py' : genVersion ( 'twisted' , 1 , 0 , 0 ) , #NEWLINE# 'web' : { #NEWLINE# #INDENT# 'topfiles' : { #NEWLINE# #INDENT# 'README' : 'Hi this is 1.0.0' , #NEWLINE# 'NEWS' : webNews , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertStructure ( root , outStructure )