#NEWLINE# def test_buildAllTarballsEnsuresCleanCheckout( self ) : #NEWLINE# #INDENT# '\n        L{UncleanWorkingDirectory} is raised by L{buildAllTarballs} when the\n        SVN checkout provided has uncommitted changes.\n        ' #NEWLINE# repositoryPath = self . mktemp ( ) #NEWLINE# repository = FilePath ( repositoryPath ) #NEWLINE# checkoutPath = self . mktemp ( ) #NEWLINE# checkout = FilePath ( checkoutPath ) #NEWLINE# runCommand ( [ 'svnadmin' , 'create' , repositoryPath ] ) #NEWLINE# runCommand ( [ 'svn' , 'checkout' , ( 'file://' + repository . path ) , checkout . path ] ) #NEWLINE# checkout . child ( 'foo' ) . setContent ( 'whatever' ) #NEWLINE# self . assertRaises ( UncleanWorkingDirectory , buildAllTarballs , checkout , FilePath ( self . mktemp ( ) ) )