def test_update_dict_existing_field(self): json_dict = jh.update_dict(self.fakeDict, self.field, 10) self.fakeDict[self.field].append(10) self.assertEqual(self.fakeDict, json_dict)
def test_update_dict_new_field(self): json_dict = jh.update_dict(self.fakeDict, self.new_field, 10) self.fakeDict[self.new_field] = [10] self.assertEqual(self.fakeDict, json_dict)