def METHOD_NAME(self):
    file_category = self._force_file_category()
    self._login("osquery.change_filecategory", "osquery.view_filecategory")
    new_name = get_random_string(12)
    response = self.client.post(reverse("osquery:update_file_category", args=(file_category.pk,)),
                                {"name": new_name,
                                 "file_paths": "yolo, 2020forever",
                                 "access_monitoring": "on"},
                                follow=True)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, "osquery/filecategory_detail.html")
    self.assertContains(response, new_name)
    file_category = response.context["object"]
    self.assertEqual(file_category.name, new_name)
    self.assertEqual(file_category.file_paths, ["yolo", "2020forever"])
    self.assertEqual(file_category.access_monitoring, True)