#NEWLINE# def test_getScriptsTopLevel( self ) : #NEWLINE# #INDENT# '\n        Passing the empty string to getScripts returns scripts that are (only)\n        in the top level bin directory.\n        ' #NEWLINE# basedir = FilePath ( self . mktemp ( ) ) #NEWLINE# basedir . createDirectory ( ) #NEWLINE# bindir = basedir . child ( 'bin' ) #NEWLINE# bindir . createDirectory ( ) #NEWLINE# included = bindir . child ( 'included' ) #NEWLINE# included . setContent ( 'yay included' ) #NEWLINE# subdir = bindir . child ( 'subdir' ) #NEWLINE# subdir . createDirectory ( ) #NEWLINE# subdir . child ( 'not-included' ) . setContent ( 'not included' ) #NEWLINE# scripts = dist . getScripts ( '' , basedir = basedir . path ) #NEWLINE# self . assertEquals ( scripts , [ scripts . path ] )