def METHOD_NAME(self):
    tag = self._force_tag()
    name = get_random_string(12)
    color = get_random_string(6, "abcedf0123456789")
    self._login("inventory.change_tag", "inventory.view_tag")
    response = self.client.post(reverse("inventory:update_tag", args=(tag.pk,)),
                                {"name": name,
                                 "color": color}, follow=True)
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, "inventory/tag_index.html")
    self.assertContains(response, name)
    tag.refresh_from_db()
    self.assertEqual(tag.name, name)
    self.assertEqual(tag.color, color)