#NEWLINE# def test_scriptsInRelease( self ) : #NEWLINE# #INDENT# '\n        getScripts should return the scripts associated with a project\n        in the context of a released subproject tarball.\n        ' #NEWLINE# basedir = self . mktemp ( ) #NEWLINE# os . mkdir ( basedir ) #NEWLINE# os . mkdir ( os . path . join ( basedir , 'bin' ) ) #NEWLINE# f = open ( os . path . join ( basedir , 'bin' , 'exy' ) , 'w' ) #NEWLINE# f . write ( 'yay' ) #NEWLINE# f . close ( ) #NEWLINE# scripts = dist . getScripts ( 'proj' , basedir = basedir ) #NEWLINE# self . assertEquals ( len ( scripts ) , 1 ) #NEWLINE# self . assertEquals ( os . path . basename ( scripts [ 0 ] ) , 'exy' )