'When I edit a video element in Studio,
I can set a "Creative Commons" license on that video element.
When I visit the LMS courseware,
I can see that the video is present
and that it has "Some Rights Reserved" displayed for the license.'

def test_cc_license(self):

    self.studio_course_outline.visit()
    subsection = self.studio_course_outline.section_at(0).subsection_at(0)
    subsection.expand_subsection()
    unit = subsection.unit_at(0)
    container_page = unit.go_to()
    container_page.edit()
    video = [xb for xb in container_page.xblocks if (xb.name == u'Test    Video')][0]
    video.open_advanced_tab()
    video.set_license(u'creative-commons')
    video.save_settings()
    container_page.publish_action.click()
    self.lms_courseware.visit()
    video = self.lms_courseware.q(css=u'.vert    .xblock    .video')
    self.assertTrue(video.is_present())
    video_license_css = u'.vert    .xblock.xmodule_VideoModule    .xblock-license'
    self.lms_courseware.wait_for_element_presence(video_license_css, u'Video    module    license    block    is    present')
    video_license = self.lms_courseware.q(css=video_license_css)
    self.assertIn(u'Some    Rights    Reserved', video_license.text[0])
