def test_json_to_feeding(self):
     feeding = Convert.json_to_feeding(self.json_feeding)
     self.assertTrue(feeding[0].equal_attributes(self.feeding[0]))
     self.assertEqual(feeding[1], self.feeding[1])
     for i in range(len(self.feeding[2])):
         self.assertTrue(feeding[2][i].equal_attributes(self.feeding[2][i]))
예제 #2
0
 def test_json_to_feeding(self):
     self.assertEqual(Convert.json_to_feeding(self.json_feeding),
                      self.feeding)
예제 #3
0
 def test_json_to_feeding(self):
     self.assertEqual(Convert.json_to_feeding(self.json_feeding), self.feeding)