#NEWLINE# def test_wait_time( self , scheduler , freeze_time ) : #NEWLINE# #INDENT# '\n        Tests that the earliest next run time from all job stores is returned (ignoring Nones).\n\n        ' #NEWLINE# scheduler . _jobstores = { #NEWLINE# #INDENT# 'default' : MagicMock ( get_next_run_time = MagicMock ( return_value = ( freeze_time . current + timedelta ( seconds = 8 ) ) ) ) , #NEWLINE# 'alter' : MagicMock ( get_next_run_time = MagicMock ( return_value = None ) ) , #NEWLINE# 'another' : MagicMock ( get_next_run_time = MagicMock ( return_value = ( freeze_time . current + timedelta ( seconds = 5 ) ) ) ) , #NEWLINE# 'more' : MagicMock ( get_next_run_time = MagicMock ( return_value = ( freeze_time . current + timedelta ( seconds = 6 ) ) ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( scheduler . _process_jobs ( ) == 5 )