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