'Test that loading the course wiki page creates the wiki page.
The user must be enrolled in the course to see the page.'

def create_course_page(self, course):

    course_wiki_home = reverse('course_wiki', kwargs={'course_id': course.id.to_deprecated_string()})
    referer = reverse('progress', kwargs={'course_id': course.id.to_deprecated_string()})
    resp = self.client.get(course_wiki_home, follow=True, HTTP_REFERER=referer)
    course_wiki_page = referer.replace('progress', (('wiki/' + course.wiki_slug) + '/'))
    ending_location = resp.redirect_chain[(-1)][0]
    self.assertEquals(ending_location, ('http://testserver' + course_wiki_page))
    self.assertEquals(resp.status_code, 200)
    self.has_course_navigator(resp)
