def test_dict(self):
        assert py2js('dict()') == '{};'
        ok = "{ foo: 1, bar: 2 }", "{ bar: 2, foo: 1 }"
        assert evalpy('dict([["foo", 1], ["bar", 2]])') in ok
        assert evalpy('dict({"foo": 1, "bar": 2})') in ok
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestHardcoreBuildins.test_dict/original