def test_8_cheeses(self): self.toah.fill_first_stool(8) tour.tour_of_four_stools(self.toah) self.assertEqual(self.toah.number_of_moves(), self.optimals[8])
def test_all_cheeses(self): for i in range(0, len(self.optimals)): self.toah = TOAHModel(4) self.toah.fill_first_stool(i) tour.tour_of_four_stools(self.toah) self.assertEqual(self.toah.number_of_moves(), self.optimals[i])