コード例 #1
0
ファイル: test_util.py プロジェクト: jcmcken/pallium
def test_super_dict():
    d = SuperDict(DICT1)
    u = DICT2.copy()

    d.recursive_update(u)

    assert dict(d) == DICT2
コード例 #2
0
ファイル: alerts.py プロジェクト: jcmcken/pallium
    def __init__(self, data):
        SuperDict.__init__(self, self.default)

        self._load_config(data)