def test_profile_specific(self):
        resp = self.client.get(reverse("profile", args=[srs(User).id]))
        self.assertEqual(resp.status_code, 200)

        self.client.login(**self.creds)
        resp = self.client.get(reverse("profile", args=[srs(User).id]))
        self.assertEqual(resp.status_code, 200)
        self.client.logout()
    def test_profile_logged_in(self):
        url = reverse("profile")
        req = self.factory.get(url)

        req.user = srs(User)

        resp = resolve(url).func(req)

        self.assertEqual(resp.status_code, 200)
 def test_review_specific(self):
     resp = self.client.get(reverse("review", args=[srs(Review).id]))
     self.assertEqual(resp.status_code, 200)
 def test_professor_specific(self):
     resp = self.client.get(reverse("professor",
                            args=[srs(Professor).id]))
     self.assertEqual(resp.status_code, 200)
 def test_school_specific(self):
     resp = self.client.get(reverse("school",
                            args=[srs(School).id]))
     self.assertEqual(resp.status_code, 200)