Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)