def test_object_dict_fields_deleted(): obj = Memo() obj.xyz = 100 del obj.xyz assert obj == {}
def test_object_dict_fields_are_keys(): obj = Memo() obj.xyz = 100 assert obj['xyz'] == 100