#NEWLINE# def test_jobs_are_not_removed_for_other_apps( self ) : #NEWLINE# #INDENT# crontab = [ '# Begin performanceplatform.collector jobs for my-app' , 'foobar' , '# End performanceplatform.collector jobs for my-app' , '# Begin performanceplatform.collector jobs for other-app' , 'barfoo' , '# End performanceplatform.collector jobs for other-app' ] #NEWLINE# new_crontab = remove_existing_crontab_for_app ( crontab , 'my-app' ) #NEWLINE# assert_that ( new_crontab , has_item ( contains_string ( 'barfoo' ) ) ) #NEWLINE# assert_that ( new_crontab , is_not ( has_item ( contains_string ( 'foobar' ) ) ) )