def test_merge_images_task_calls_merge_images(self, ms_merge_images): ms.merge_images_task('a', 'b', 'c', 'd', 'e') ms_merge_images.assert_called_once_with(img1_primary_id_in='a', img1_alternate_id_in='b', img2_id_in='c', img_id_out='d', group_id='e')
def test_merge_images_task_catches_exception( self, ms_merge_images, ms_log_asynchronous_exception): the_exception = ThermalBaseError('wendy_williams') ms_merge_images.side_effect = the_exception ms.merge_images_task('a', 'b', 'c', 'd', 'e') ms_merge_images.assert_called_once_with(img1_primary_id_in='a', img1_alternate_id_in='b', img2_id_in='c', img_id_out='d', group_id='e') ms_log_asynchronous_exception.assert_called_once_with(the_exception)
def test_merge_images_task_catches_exception(self, ms_merge_images, ms_log_asynchronous_exception): the_exception = ThermalBaseError('wendy_williams') ms_merge_images.side_effect = the_exception ms.merge_images_task('a', 'b', 'c', 'd', 'e') ms_merge_images.assert_called_once_with(img1_primary_id_in='a', img1_alternate_id_in='b', img2_id_in='c', img_id_out='d', group_id='e') ms_log_asynchronous_exception.assert_called_once_with(the_exception)