1 from sympy
import Symbol
, Integer
17 # all supported objects
18 all_objs
= basic_objs
+ [
51 def xtest_basic_nostr():
52 for obj
in basic_objs
:
53 for op
in ['+','-','*','/','**']:
54 py
.test
.raises(TypeError, "obj %s '1'" % op
)
58 assert len(e
.args
) == 2
60 assert len(e
.args
) == 3
63 assert (x
*y
).args
[:] in ((x
, y
), (y
, x
))
64 assert (x
+y
).args
[:] in ((x
, y
), (y
, x
))
65 assert (x
*y
+1).args
[:] in ((x
*y
, 1), (1, x
*y
))
66 #assert sin(x*y).args[:] == (x*y,)
67 #assert sin(x*y).args[0] == x*y
68 assert (x
**y
).args
[:] == (x
,y
)
69 assert (x
**y
).args
[0] == x
70 assert (x
**y
).args
[1] == y