'Test to verify that normally Wiki\'s cannot be browsed from the /wiki/xxxx/yyy/zz URLs'

@patch.dict('django.conf.settings.FEATURES', {'ALLOW_WIKI_ROOT_ACCESS': False})
def test_wiki_no_root_access(self):

    self.login(self.student, self.password)
    self.enroll(self.toy)
    referer = reverse('progress', kwargs={'course_id': self.toy.id.to_deprecated_string()})
    destination = reverse('wiki:get', kwargs={'path': 'some/fake/wiki/page/'})
    resp = self.client.get(destination, HTTP_REFERER=referer)
    self.assertEqual(resp.status_code, 403)
