def test_clean_up_files_task_catches_exception( self, as_clean_up_files, at_log_asynchronous_exception): the_exception = ThermalBaseError('phil_donahue') as_clean_up_files.side_effect = the_exception admt.clean_up_files_task('a', 'b') as_clean_up_files.assert_called_once_with('a', 'b') at_log_asynchronous_exception.assert_called_once_with(the_exception)
def test_clean_up_files_task_catches_exception(self, as_clean_up_files, at_log_asynchronous_exception): the_exception = ThermalBaseError('phil_donahue') as_clean_up_files.side_effect = the_exception admt.clean_up_files_task('a', 'b') as_clean_up_files.assert_called_once_with('a', 'b') at_log_asynchronous_exception.assert_called_once_with(the_exception)
def test_clean_up_files_task_calls_expected_methods(self, as_clean_up_files): admt.clean_up_files_task('a', 'b') as_clean_up_files.assert_called_once_with('a', 'b')
def test_clean_up_files_task_calls_expected_methods( self, as_clean_up_files): admt.clean_up_files_task('a', 'b') as_clean_up_files.assert_called_once_with('a', 'b')