def METHOD_NAME(fake_connection):
    ticket = create_ticket(uuid="uuid")
    data = json.dumps(ticket).encode("utf8")
    fake_connection.response = FakeResponse(data=data)
    response = imagetickets.get_ticket("uuid")
    assert response == ticket