Browse Source

fix tests: Take is now depending of move

Bastien Sevajol 9 years ago
parent
commit
3e60b4feeb
1 changed files with 7 additions and 7 deletions
  1. 7 7
      intelligine/tests/simulation/mode/TestChangeMode.py

+ 7 - 7
intelligine/tests/simulation/mode/TestChangeMode.py View File

113
         self.assertFalse(self.ant.is_carrying())
113
         self.assertFalse(self.ant.is_carrying())
114
 
114
 
115
         # Ant has take Food piece
115
         # Ant has take Food piece
116
-        self._run_and_get_core(19)
117
-        self.assertEquals((0, 0, -19), self.ant.get_position())
116
+        self._run_and_get_core(20)
117
+        self.assertEquals((0, 0, -20), self.ant.get_position())
118
         self.assertTrue(self.ant.is_carrying())
118
         self.assertTrue(self.ant.is_carrying())
119
         self.assertIsNotNone(self.ant.get_carried())
119
         self.assertIsNotNone(self.ant.get_carried())
120
         self.assertEquals(self.food.__class__, self.ant.get_carried().__class__)
120
         self.assertEquals(self.food.__class__, self.ant.get_carried().__class__)
124
         self.assertEquals(MODE_GOHOME, self.ant.get_brain().get_movement_mode())
124
         self.assertEquals(MODE_GOHOME, self.ant.get_brain().get_movement_mode())
125
         self.assertEquals(PHEROMON_DIR_EXPLO, self.ant.get_movement_molecule_gland().get_molecule_type())
125
         self.assertEquals(PHEROMON_DIR_EXPLO, self.ant.get_movement_molecule_gland().get_molecule_type())
126
 
126
 
127
-        self._run_and_get_core(32)
127
+        self._run_and_get_core(34)
128
         self.assertEquals((0, 0, -6), self.ant.get_position())
128
         self.assertEquals((0, 0, -6), self.ant.get_position())
129
         self.assertTrue(self.ant.is_carrying())
129
         self.assertTrue(self.ant.is_carrying())
130
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
130
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
131
 
131
 
132
-        self._run_and_get_core(33)
132
+        self._run_and_get_core(35)
133
         self.assertEquals((0, 0, -5), self.ant.get_position())
133
         self.assertEquals((0, 0, -5), self.ant.get_position())
134
         self.assertTrue(self.ant.is_carrying())
134
         self.assertTrue(self.ant.is_carrying())
135
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
135
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
136
 
136
 
137
-        self._run_and_get_core(34)
137
+        self._run_and_get_core(36)
138
         self.assertEquals((0, 0, -4), self.ant.get_position())
138
         self.assertEquals((0, 0, -4), self.ant.get_position())
139
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
139
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
140
 
140
 
141
-        self._run_and_get_core(37)
141
+        self._run_and_get_core(39)
142
         self.assertEquals((0, 0, -1), self.ant.get_position())
142
         self.assertEquals((0, 0, -1), self.ant.get_position())
143
         # Ant has NOT put his food piece
143
         # Ant has NOT put his food piece
144
         self.assertFalse(self.ant.is_carrying())
144
         self.assertFalse(self.ant.is_carrying())
145
 
145
 
146
-        self._run_and_get_core(38)
146
+        self._run_and_get_core(40)
147
         self.assertEquals((0, 0, -2), self.ant.get_position())
147
         self.assertEquals((0, 0, -2), self.ant.get_position())
148
         self.assertFalse(self.ant.is_carrying())
148
         self.assertFalse(self.ant.is_carrying())