'Test successful CDN request.'

@patch.dict('django.conf.settings.CDN_VIDEO_URLS', {'CN': 'https://chinacdn.cn/'})
def test_rewrite_video_url_success(self):

    cdn_response_video_url = (settings.CDN_VIDEO_URLS['CN'] + self.original_video_file)
    self.assertEqual(rewrite_video_url(settings.CDN_VIDEO_URLS['CN'], self.original_video_url), cdn_response_video_url)
