def METHOD_NAME(self):
    file_category = self._force_file_category()
    self._login("osquery.view_filecategory")
    response = self.client.get(reverse("osquery:file_categories"))
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, "osquery/filecategory_list.html")
    self.assertIn(file_category, response.context["object_list"])
    self.assertContains(response, file_category.name)