@mock.patch('transcoder.tasks.transcode', mock.Mock())
@mock.patch('post_office.mailgun.requests', mock.Mock())
def test_fulfilling_a_shoutout_request_create_a_shoutout_video(self, mock1):
    response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(response.status_code, status.HTTP_201_CREATED)
    self.assertEqual(ShoutoutVideo.objects.count(), 1)
    shoutout = ShoutoutVideo.objects.first()
    expected_file_url = f'orders/talent-1/order-{shoutout.order.hash_id}/viggio-para-peter.mp4'
    self.assertEqual(shoutout.hash_id, response.data['shoutout_hash'])
    self.assertTrue(shoutout.file.url.endswith(expected_file_url))
@mock.patch('transcoder.tasks.transcode', mock.Mock())
@mock.patch('post_office.mailgun.requests', mock.Mock())
def test_fulfilling_a_shoutout_request_create_a_shoutout_video(self, mock1):
    response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(response.status_code, status.HTTP_201_CREATED)
    self.assertEqual(ShoutoutVideo.objects.count(), 1)
    shoutout = ShoutoutVideo.objects.first()
    expected_file_url = f'orders/talent-1/order-{shoutout.order.hash_id}/viggio-para-peter.mp4'
    self.assertEqual(shoutout.hash_id, response.data['shoutout_hash'])
    self.assertTrue(shoutout.file.url.endswith(expected_file_url))