def test_term():
    s = Symbol('s')
    p = (2 * s)
    assert (p.matches((2 * s)) == {})
    assert (p.matches((3 * s)) == None)
    assert (p.matches(s) == None)
    assert (p.matches(Number(2)) == None)
    assert (p.matches((s ** 2)) == None)
def test_term():
    s = Symbol('s')
    p = (2 * s)
    assert (p.matches((2 * s)) == {})
    assert (p.matches((3 * s)) == None)
    assert (p.matches(s) == None)
    assert (p.matches(Number(2)) == None)
    assert (p.matches((s ** 2)) == None)