#NEWLINE# @ patch ( 'revolver.directory.temp_local' ) #NEWLINE# @ patch ( 'revolver.core.local' ) #NEWLINE# def test_archive( temp_local , local ) : #NEWLINE# #INDENT# temp_local . expects_call ( ) . returns ( '/tmp' ) #NEWLINE# cmd = 'git archive --format=tar foo | gzip > /tmp/repo.tar.gz' #NEWLINE# local . expects_call ( ) . with_args ( cmd ) #NEWLINE# assert git . create_archive ( 'foo' )