

def test_func1(self):
    code = py2js(func1)
    lines = [line for line in code.split('\n') if line]
    assert (len(lines) == 4)
    assert (lines[1] == 'func1 = function () {')
    assert lines[2].startswith('  ')
    assert (lines[3] == '};')

dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py TestFunctions.test_func1/original