Пример #1
0
 def test_multiple(self):
     result = utils.merge(utils.FrozenDict({'foo': 5}), {
         'foo': 9,
         'bla': 2
     }, {'blabla': 1})
     assert isinstance(result, utils.FrozenDict)
     assert result == {'foo': 9, 'bla': 2, 'blabla': 1}
Пример #2
0
 def test_multiple(self):
     result = utils.merge(utils.FrozenDict({"foo": 5}), {
         "foo": 9,
         "bla": 2
     }, {"blabla": 1})
     assert isinstance(result, utils.FrozenDict)
     assert result == {"foo": 9, "bla": 2, "blabla": 1}
Пример #3
0
 def test_single(self):
     assert utils.merge({'foo': 4}) == {'foo': 4}
Пример #4
0
 def test_empty(self):
     assert utils.merge() == {}
Пример #5
0
 def test_single(self):
     assert utils.merge({"foo": 4}) == {"foo": 4}