

def test_docstring(self):

    def func(a, b):
        ' docstring '
        return (a + b)
    code = py2js(func)
    assert (evaljs((code + 'func(100, 10)')) == '110')
    assert (evaljs((self + 'func("x", 10)')) == 'x10')
    assert (code.count('// docstring') == 1)

dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py TestFunctions.test_docstring/VarMisuse@57/76 `code`->`self`