def test_that_method_should_raise_verification_mismatch_when_any_result_file_missing( self): with self.assertRaises(VerificationMismatch): ensure_enough_result_files_provided( frames=[1, 2, 3], result_files_list=self.result_files_list, subtask_id=self.subtask_id, )
def test_that_method_should_accept_frames_and_result_files_when_correct_variable_is_passed( self): try: ensure_enough_result_files_provided( frames=self.frames, result_files_list=self.result_files_list, subtask_id=self.subtask_id, ) except Exception: # pylint: disable=broad-except self.fail()
def test_that_method_should_log_warning_if_there_is_more_result_files_than_frames( self): with mock.patch( 'verifier.utils.logger.warning') as logging_warning_mock: ensure_enough_result_files_provided( frames=[1], result_files_list=self.result_files_list, subtask_id=self.subtask_id, ) logging_warning_mock.assert_called_once_with( 'There is more result files than frames to render')