def test_map_none(): def fn(x): return x assert core.map_none(None, fn) == None assert core.map_none("not none", fn) == "not none"