def test_as_dummy(): x = Symbol('x') x1 = x.as_dummy() assert x1 != x assert x1 != x.as_dummy() x = Symbol('x', commutative=False) x1 = x.as_dummy() assert x1 != x assert x1.is_commutative is False
def test_Dummy_from_Symbol(): # should not get the full dictionary of assumptions n = Symbol('n', integer=True) d = n.as_dummy() assert repr(d) == "Dummy('n', integer=True)"
def test_Dummy_from_Symbol(): # should not get the full dictionary of assumptions n = Symbol('n', integer=True) d = n.as_dummy() assert repr(d) == "Dummy('n', integer=True)"