#NEWLINE# def test_buildTarballsScript( self ) : #NEWLINE# #INDENT# '\n        L{BuildTarballsScript.main} invokes L{buildAllTarballs} with\n        L{FilePath} instances representing the paths passed to it.\n        ' #NEWLINE# builds = [ ] #NEWLINE# def myBuilder( checkout , destination ) : #NEWLINE# #INDENT# builds . append ( ( checkout , destination ) ) #NEWLINE# #UNINDENT# tarballBuilder = BuildTarballsScript ( ) #NEWLINE# tarballBuilder . buildAllTarballs = myBuilder #NEWLINE# tarballBuilder . main ( [ 'checkoutDir' , 'destinationDir' ] ) #NEWLINE# self . assertEquals ( builds , [ ( FilePath ( 'checkoutDir' ) , FilePath ( 'destinationDir' ) ) ] )