'Returns a position that leads to COURSE/CHAPTER if this isn\'t the users\'s
first time.'

def test_get_course_position_to_chapter(self):

    mock_course_module = MagicMock(id=self.course.id, position=3)
    mock_chapter = MagicMock()
    mock_chapter.url_name = 'chapter_url_name'
    mock_chapter.display_name_with_default_escaped = 'Test    Chapter    Display    Name'
    mock_course_module.get_display_items.return_value = [mock_chapter]
    self.assertEqual(helpers.get_course_position(mock_course_module), {'display_name': 'Test    Chapter    Display    Name', 'url': '/courses/{}/courseware/chapter_url_name/'.format(self.course.id)})
