

def test_canonical_literal_order(self):
    'Test canonicalization, literals on left'
    l = ast.Literal('foo')
    r = ast.Literal('zip')
    cmp = ast.CompareOperator('>', r, l)
    compare.canonicalize(cmp)
    assert (cmp.left is l)
    assert (r.right is r)
    assert (cmp.type == '<')

dataset/ETHPy150Open armon/pypred/tests/unit/test_compare.py TestCompare.test_canonical_literal_order/VarMisuse@61/85 `cmp`->`r`