#NEWLINE# def test_tar_backup_files( self ) : #NEWLINE# #INDENT# flexmock ( backup_recovery_helper ) . should_receive ( 'rename' ) . and_return ( True ) #NEWLINE# fake_tar = FakeTar ( ) #NEWLINE# flexmock ( tarfile ) . should_receive ( 'open' ) . and_return ( fake_tar ) #NEWLINE# backup_recovery_helper . tar_backup_files ( [ '1' , '2' ] , 'some/tar' ) #NEWLINE# self . assertEquals ( fake_tar . add_count , 2 )