async def METHOD_NAME(error, fake2, spawn_client, test_random_alphanumeric, resp_is):
    """
    Test that a label can be added to the database at ``POST /labels``.
    """
    client = await spawn_client(authorize=True, administrator=True)
    label = await fake2.labels.create()
    data = {"name": "Bug", "color": "#a83432", "description": "This is a bug"}
    if error == "400_exists":
        data["name"] = label.name
    if error == "400_color":
        data["color"] = "#1234567"
    resp = await client.post("/labels", data)
    if error == "400_exists":
        await resp_is.bad_request(resp, "Label name already exists")
        return
    if error == "400_color":
        assert resp.status == 400
        return
    assert resp.status == 201
    assert await resp.json() == {
        "id": 2,
        "name": "Bug",
        "color": "#A83432",
        "description": "This is a bug",
        "count": 0,
    }