def METHOD_NAME(self):
    self._login("osquery.add_filecategory", "osquery.view_filecategory")
    file_category_name = get_random_string(64)
    response = self.client.post(reverse("osquery:create_file_category"),
                                {"name": file_category_name,
                                 "file_paths": "yolo, fomo"},
                                follow=True)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, "osquery/filecategory_detail.html")
    self.assertContains(response, file_category_name)
    file_category = response.context["object"]
    self.assertEqual(file_category.name, file_category_name)
    self.assertEqual(file_category.file_paths, ["yolo", "fomo"])
    self.assertEqual(file_category.access_monitoring, False)