'Uses the UI to set the course\'s license to the given license_type (str)'

def set_license(self, license_type):

    css_selector = 'ul.license-types    li[data-license={license_type}]    button'.format(license_type=license_type)
    self.wait_for_element_presence(css_selector, '{license_type}    button    is    present'.format(license_type=license_type))
    self.q(css=css_selector).click()
