def METHOD_NAME():
    dom = QQ.algebraic_field(sqrt(3)).algebraic_field(I)
    w = exp(I*2*pi/3)
    l1 = [w**2, w, 1]
    r1 = Poly(l1, x, extension=True)
    w2 = w.expand()
    l2 = [w2**2, w2, 1]
    r2 = Poly(l2, x, extension=True)
    assert r1 == r2
    assert r1.domain == dom