#NEWLINE# def test_getVersionCore( self ) : #NEWLINE# #INDENT# '\n        Test that getting the version of core reads from the\n        [base]/_version.py file.\n        ' #NEWLINE# f = open ( os . path . join ( self . dirname , '_version.py' ) , 'w' ) #NEWLINE# f . write ( '\nfrom twisted.python import versions\nversion = versions.Version("twisted", 0, 1, 2)\n' ) #NEWLINE# f . close ( ) #NEWLINE# self . assertEquals ( dist . getVersion ( 'core' , base = self . dirname ) , '0.1.2' )