예제 #1
0
 def test_addition(self):
     a = {}
     b = {'new': 'value'}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn('new', changes)
예제 #2
0
 def test_addition(self):
     a = {}
     b = {"new": "value"}
     changes = dict(util.get_variable_changes(a, b))
     self.assertIn("new", changes)
예제 #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'])
예제 #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"])