def METHOD_NAME(self):
    response = self.client.get('/course/course/')
    self.assertEqual(response.status_code, 404)
    response = self.client.get('/course/Course-Url/', follow=True)
    self.assertTrue(response.redirect_chain)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'userprofile/login.html')
    self.client.login(username="testUser", password="testPassword")
    response = self.client.get('/course/Course-Url/', follow=True)
    self.assertTrue(response.redirect_chain)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'course/course.html')
    response = self.client.get('/another/course/Course-Url/')
    self.assertEqual(response.status_code, 404)