def test_assigned_function():
    two_way_conversion_test("exports.schema = def(argument1, argument2):\n"
                            "  print(argument1)\n"
                            "\n",
                            "exports.schema = function(argument1, argument2) {\n"
                            "  console.log(argument1);\n"
                            "};\n")
    two_way_conversion_test("exports.schema = def(argument1, argument2):\n"
                            "  print(argument1)\n"
                            "\n",
                            "exports.schema = function(argument1, argument2) {\n"
                            "  console.log(argument1);\n"
                            "};\n")
Test to ensure assigning a function works as expected
dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_assigned_function