6 from sympycore
.core
import Expr
7 from sympycore
.utils
import SYMBOL
10 # see comment in sympycore/core.py for pickling pure Expr
16 fn
= tempfile
.mktemp()
17 obj
= MyExpr(SYMBOL
, 'x')
28 assert obj
.head
== obj2
.head
,`obj
.head
, obj2
.head`
29 assert obj
.head
is obj2
.head
,`obj
.head
, obj2
.head
, id(obj
.head
), id(obj2
.head
)`
30 assert obj
.data
== obj2
.data
,`obj
.data
, obj2
.data`
31 assert obj
.pair
== obj2
.pair
,`obj
.pair
, obj2
.pair`
32 assert obj
==obj2
,`obj
,obj2`