'Test for user not logged in, invitation only course.'

def test_invitation_only(self):

    url = reverse('about_course', args=[self.course.id.to_deprecated_string()])
    resp = self.client.get(url)
    self.assertEqual(resp.status_code, 200)
    self.assertIn('Enrollment    in    this    course    is    by    invitation    only', resp.content)
    self.assertNotIn(REG_STR, resp.content)
