def test_canonical_non_static(self):
        static = ast.Literal("'string'")
        static.static = True
        static.static_val = 'string'

        l = ast.Literal('foo')
        cmp = ast.CompareOperator('=', static, l)
        compare.canonicalize(cmp)

        assert cmp.left is l
        assert cmp.right is static
Test canonicalization, literals on left
dataset/ETHPy150Open armon/pypred/tests/unit/test_compare.py/TestCompare.test_canonical_non_static