def METHOD_NAME(fake_connection):
    ticket = create_ticket(uuid="uuid")
    body = json.dumps(ticket).encode("utf8")
    expected = [
        ("request", ("PUT", "/tickets/uuid"), {"body": body}),
    ]
    imagetickets.add_ticket(ticket)
    assert fake_connection.__calls__ == expected
    assert fake_connection.closed