def METHOD_NAME(self):
    self.assertTrue(
        self.client.login(username='test_user')
    )  # test_user is a teacher
    url_main = reverse('problemset_main')
    response = self.client.get(url_main)
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, 'Add problem')
    url_add = reverse('problemset_add_or_update')
    response = self.client.get(url_add, follow=True)
    self.assertEqual(response.status_code, 200)
    self.assertTrue(self.client.login(username='test_user2'))  # test_user2 is not
    response = self.client.get(url_main)
    self.assertEqual(response.status_code, 200)
    self.assertNotContains(response, 'Add problem')
    url_add = reverse('problemset_add_or_update')
    response = self.client.get(url_add, follow=True)
    self.assertEqual(response.status_code, 403)