'Sets the course license to the given license_name
(str, "All Rights Reserved" or "Creative Commons")'

@course_license.setter
def course_license(self, license_name):

    license_types_css = u'.license    ul.license-types    li.license-type'
    self.wait_for_element_presence(license_types_css, u'license    type    buttons    are    present')
    button_xpath = u"//div[contains(@class,    'license')]//ul[contains(@class,    'license-types')]//li[contains(@class,    'license-type')]//button[contains(text(),'{license_name}')]".format(license_name=license_name)
    button = self.q(xpath=button_xpath)
    if (not button.present):
        raise Exception(u'Invalid    license    name:    {name}'.format(name=license_name))
    button.click()
