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]))
def test_json_to_feeding(self): self.assertEqual(Convert.json_to_feeding(self.json_feeding), self.feeding)