def test_method1(self):
        code = py2js(self.method1)
        lines = [line for line in code.split('\n') if line]
        
        assert len(lines) == 4  # only three lines + definition
        assert lines[1] == 'method1 = function () {'  # no args, no self/this
        assert lines[2].startswith('  ')  # indented
        assert lines[3] == '};'  # dedented
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py/TestFunctions.test_method1/original