Beispiel #1
0
 def test_basic_init(self):
     dct = DotDict({'key1': 'value1', 'key2': 'value2'})
     assert sorted(dct.keys()) == sorted(['key1', 'key2'])
     assert dct.key1 == 'value1'
     assert dct.key2 == 'value2'
Beispiel #2
0
 def test_blank_init(self):
     dct = DotDict()
     assert dct.keys() == []