@mock.patch('post_office.mailgun.requests', mock.Mock())
def test_after_upload_a_shoutout_transcode_process_is_triggered(self, mock1):
    with mock.patch('transcoder.tasks.transcode') as mocked_transcoder:
        response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(ShoutoutVideo.objects.count(), 1)
    shoutout = ShoutoutVideo.objects.first()
    self.assertEqual(response.status_code, status.HTTP_201_CREATED)
    mocked_transcoder.assert_called_once_with(shoutout, 'mp4')
@mock.patch('post_office.mailgun.requests', mock.Mock())
def test_after_upload_a_shoutout_transcode_process_is_triggered(self, mock1):
    with mock.patch('transcoder.tasks.transcode') as mocked_transcoder:
        response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(ShoutoutVideo.objects.count(), 1)
    shoutout = ShoutoutVideo.objects.first()
    self.assertEqual(response.status_code, status.HTTP_201_CREATED)
    mocked_transcoder.assert_called_once_with(shoutout, 'mp4')