예제 #1
0
def test_object_dict_fields_deleted():
    obj = Memo()
    obj.xyz = 100
    del obj.xyz
    assert obj == {}
예제 #2
0
def test_object_dict_fields_are_keys():
    obj = Memo()
    obj.xyz = 100
    assert obj['xyz'] == 100