#NEWLINE# def test_getVersionOther( self ) : #NEWLINE# #INDENT# '\n        Test that getting the version of a non-core project reads from\n        the [base]/[projname]/_version.py file.\n        ' #NEWLINE# os . mkdir ( os . path . join ( self . dirname , 'blat' ) ) #NEWLINE# f = open ( os . path . join ( self . dirname , 'blat' , '_version.py' ) , 'w' ) #NEWLINE# f . write ( '\nfrom twisted.python import versions\nversion = versions.Version("twisted.blat", 9, 8, 10)\n' ) #NEWLINE# f . close ( ) #NEWLINE# self . assertEquals ( dist . getVersion ( 'blat' , base = self . dirname ) , '9.8.10' )