def test_function_declaration_order(self):

        self.run_script("""
        foo = "first";
        function test() {
            foo = "second";
        }
        bar = foo;
        """)
        self.assert_var_eq("bar", "first")
        self.assert_var_eq("foo", "second")
Test that function declarations happen in the right time.
dataset/ETHPy150Open mozilla/app-validator/tests/js/test_traversal.py/TestFunctionTraversal.test_function_declaration_order