'Tests get_lms_link_for_item.'

def lms_link_test(self):

    course_key = CourseLocator('mitX', '101', 'test')
    location = course_key.make_usage_key('vertical', 'contacting_us')
    link = utils.get_lms_link_for_item(location, False)
    self.assertEquals(link, '//localhost:8000/courses/course-v1:mitX+101+test/jump_to/block-v1:mitX+101+test+type@vertical+block@contacting_us')
    link = utils.get_lms_link_for_item(location, True)
    self.assertEquals(link, '//preview.localhost/courses/course-v1:mitX+101+test/jump_to/block-v1:mitX+101+test+type@vertical+block@contacting_us')
    location = course_key.make_usage_key('course', 'test')
    link = utils.get_lms_link_for_item(location)
    self.assertEquals(link, '//localhost:8000/courses/course-v1:mitX+101+test/jump_to/block-v1:mitX+101+test+type@course+block@test')
