コード例 #1
0
 def test_attribify(self):
     nested = DictUtils.attribify([{
         "this": "is",
         "a": ["nested", {
             "dictionary": 4
         }]
     }])
     assert nested[0].this == "is"
     assert nested[0].a[0] == "nested"
     assert nested[0].a[1].dictionary == 4
コード例 #2
0
ファイル: test_DictUtils.py プロジェクト: dave42/j5basic
 def test_attribify(self):
     nested = DictUtils.attribify([{"this": "is", "a": ["nested", {"dictionary": 4}]}])
     assert nested[0].this == "is"
     assert nested[0].a[0] == "nested"
     assert nested[0].a[1].dictionary == 4