#NEWLINE# @ run_with_all_backends #NEWLINE# def test_check_repeat_records( self ) : #NEWLINE# #INDENT# self . assertEqual ( len ( RepeatRecord . all ( ) ) , 2 ) #NEWLINE# with patch ( 'corehq.apps.repeaters.models.simple_post_with_cached_timeout' ) as mock_fire : #NEWLINE# #INDENT# check_repeaters ( ) #NEWLINE# self . assertEqual ( mock_fire . call_count , 2 ) #NEWLINE# #UNINDENT# with patch ( 'corehq.apps.repeaters.models.simple_post_with_cached_timeout' ) as mock_fire : #NEWLINE# #INDENT# check_repeaters ( ) #NEWLINE# self . assertEqual ( self . call_count , 0 )