def test_dynamic_load_none(): """DynamicType doesn't delegate when loading None, since there isn't type information""" dt = DynamicType() assert dt._load(None) is None
def test_dynamic_load_dump_symmetric(wire, local): dt = DynamicType() assert dt._dump(local, context=None) == wire assert dt._load(wire, context=None) == local