def test_canonical_literal_order(self):
        l = ast.Literal('foo')
        r = ast.Literal('zip')
        cmp = ast.CompareOperator('>', r, l)
        compare.canonicalize(cmp)

        assert cmp.left is l
        assert cmp.right is r
        assert cmp.type == "<"
Confirm the validitiy of a given dict as an OpenXC message.
dataset/ETHPy150Open armon/pypred/tests/unit/test_compare.py/TestCompare.test_canonical_literal_order--crossover with--dataset/ETHPy150Open openxc/openxc-python/openxc/formats/json.py/JsonFormatter._validate