'Video URLs can link to the CDN if a CDN setting is set.'

@override_settings(GALLERY_VIDEO_URL='http://videos.mozilla.org/serv/sumo/')
def test_video_cdn(self):

    v = VideoFactory()
    d = ApprovedRevisionFactory(content=('[[V:%s]]' % v.title)).document
    doc = pq(d.html)
    assert (settings.GALLERY_VIDEO_URL in doc('source').eq(1).attr('src'))
    assert (settings.GALLERY_VIDEO_URL in doc('video').attr('data-fallback'))
    assert (settings.GALLERY_VIDEO_URL in doc('source').eq(0).attr('src'))
