def test_decorator():
    two_way_conversion_test("@decorate\n"
                            "def my_action(arguments):\n"
                            "   do_something()\n"
                            "\n",
                            "my_action = decorate(my_action);\n"
                            "function my_action(arguments) {\n"
                            "   do_something();\n"
                            "}\n",
                            "my_action = decorate(my_action)\n"
                            "def my_action(arguments):\n"
                            "   do_something()\n"
                            "\n",
                            )
Test to ensure decorators get converted in the expected way
dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_decorator