def METHOD_NAME(client):
    project = f.ProjectFactory.create()
    user_story = f.create_userstory(project=project, status__project=project)
    f.MembershipFactory.create(project=project, user=user_story.owner, is_admin=True)
    url = reverse("userstories-detail", kwargs={"pk": user_story.pk})
    data = {
        "tags": [
            ["back", None],
            ["front", None],
            ["ux", None]
        ],
        "version": user_story.version
    }
    client.login(user_story.owner)
    response = client.json.patch(url, json.dumps(data))
    assert response.status_code == 200, response.data
    tags_colors = OrderedDict(project.tags_colors)
    assert not tags_colors.keys()
    project.refresh_from_db()
    tags_colors = OrderedDict(project.tags_colors)
    assert "back" in tags_colors and "front" in tags_colors and "ux" in tags_colors