'Tests that get_cms_course_link_by_id and get_cms_block_link_by_id return the right thing'

@override_settings(CMS_BASE=CMS_BASE_TEST)
def test_get_cms_course_block_link(self):

    self.course = CourseFactory.create(org='org', number='num', display_name='name')
    cms_url = u'//{}/course/{}'.format(CMS_BASE_TEST, unicode(self.course.id))
    self.assertEqual(cms_url, get_cms_course_link(self.course))
    cms_url = u'//{}/course/{}'.format(CMS_BASE_TEST, unicode(self.course.location))
    self.assertEqual(cms_url, get_cms_block_link(self.course, 'course'))
