Example #1
0
 def test_bad_data(self, left, right, expected):
     # pylint: disable=no-self-use,protected-access
     config = Configuration({})
     with pytest.raises(ValueError) as info:
         config._merge_dicts(left, right)
     assert str(info.value) == \
         'Conflict at : {}'.format(expected)
Example #2
0
 def test_good_data(self, left, right, expected):
     # pylint: disable=no-self-use,protected-access
     config = Configuration({})
     config._merge_dicts(left, right)
     assert left == expected