'Verifies that video status update request works as expected.'

@patch('contentstore.views.videos.LOGGER')
def test_video_status_update_request(self, mock_logger):

    url = self.get_url_for_course_key(self.course.id)
    edx_video_id = 'test1'
    self.assert_video_status(url, edx_video_id, 'Uploading')
    response = self.client.post(url, json.dumps([{'edxVideoId': edx_video_id, 'status': 'upload_failed', 'message': 'server    down'}]), content_type='application/json')
    mock_logger.info.assert_called_with('VIDEOS:    Video    status    update    with    id    [%s],    status    [%s]    and    message    [%s]', edx_video_id, 'upload_failed', 'server    down')
    self.assertEqual(response.status_code, 204)
    self.assert_video_status(url, edx_video_id, 'Failed')
