def testOneMoreThanGoal(self):
     state = game1.get_start_state()
     state.days['green'] = [[2, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0],
                            [1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0],
                            [1, 0, 0, 0]]
     state.days['blue'] = [[0, 2, 0, 0], [0, 0, 0, 0], [2, 0, 0, 0],
                           [0, 0, 0, 0], [2, 0, 0, 0], [0, 0, 0, 0],
                           [0, 0, 0, 0]]
     self.assertEqual(
         len(pyhop.pyhop(state, [('sort_meds', game1.get_goal())])), 1)
 def testSameState(self):
     state = game1.get_start_state()
     game1.modify_state(state, 'green', 0, 0, 'add_pill', 1)
     game1.modify_state(state, 'green', 0, 0, 'remove_pill', 1)
     self.assertEqual(
         len(pyhop.pyhop(state, [('sort_meds', game1.get_goal())])), 13)
 def testStart(self):
     state = game1.get_start_state()
     self.assertEqual(
         len(pyhop.pyhop(state, [('sort_meds', game1.get_goal())])), 13)