@run_in_both(Person, "['ok-label', 'ok-type']")
def test_emit_fail(Person):
    res = []
    name = Person()
    try:
        name.emit('first_name:xx', dict(old_value='x1', new_value='y1'))
    except ValueError:
        res.append('ok-label')
    try:
        name.emit('first_name', 4)
    except __HOLE__:
        res.append('ok-type')
    return res
dataset/ETHPy150Open zoofIO/flexx/flexx/event/tests/test_both.py/test_emit_fail