def METHOD_NAME(fake_connection):
    fake_response = FakeResponse(status=300)
    fake_response.headers["content-length"] = "invalid"
    fake_connection.response = fake_response
    with pytest.raises(se.ImageDaemonError):
        imagetickets.remove_ticket("uuid")