Beispiel #1
0
 def test_addition(self):
     a = {}
     b = {'new': 'value'}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn('new', changes)
Beispiel #2
0
 def test_addition(self):
     a = {}
     b = {"new": "value"}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn("new", changes)
Beispiel #3
0
 def test_change(self):
     a = {'key': 'value'}
     b = {'key': 'newvalue'}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn('key', changes)
     self.assertEqual(pprint.pformat(b['key']), changes['key'])
Beispiel #4
0
 def test_change(self):
     a = {"key": "value"}
     b = {"key": "newvalue"}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn("key", changes)
     self.assertEqual(pprint.pformat(b["key"]), changes["key"])