Browse Source

pheromones tests: rename fct

Bastien Sevajol 9 years ago
parent
commit
f09d824277
1 changed files with 5 additions and 4 deletions
  1. 5 4
      intelligine/tests/simulation/pheromone/TestDirection.py

+ 5 - 4
intelligine/tests/simulation/pheromone/TestDirection.py View File

24
         for position in pheromones:
24
         for position in pheromones:
25
             self._context.pheromones().set_pheromones(position, pheromones[position])
25
             self._context.pheromones().set_pheromones(position, pheromones[position])
26
 
26
 
27
-    def _test_direction_point(self, pheromones, direction, pheromone_type=PHEROMON_DIR_EXPLO, reference_point=(0, 0, 0)):
27
+    def _get_direction_for_point(self, pheromones, direction, pheromone_type=PHEROMON_DIR_EXPLO,
28
+                                 reference_point=(0, 0, 0)):
28
         """
29
         """
29
 
30
 
30
         :param pheromones:
31
         :param pheromones:
78
         }
79
         }
79
 
80
 
80
         for direction_wanted in test_data:
81
         for direction_wanted in test_data:
81
-            self._test_direction_point(test_data[direction_wanted], direction_wanted)
82
+            self._get_direction_for_point(test_data[direction_wanted], direction_wanted)
82
 
83
 
83
     def test_with_multiple_same_intensity(self):
84
     def test_with_multiple_same_intensity(self):
84
         """
85
         """
100
         }
101
         }
101
 
102
 
102
         for direction_wanted in test_data:
103
         for direction_wanted in test_data:
103
-            self._test_direction_point(test_data[direction_wanted], direction_wanted)
104
+            self._get_direction_for_point(test_data[direction_wanted], direction_wanted)
104
 
105
 
105
     def test_with_multiple_different_intensity(self):
106
     def test_with_multiple_different_intensity(self):
106
         """
107
         """
116
         }
117
         }
117
 
118
 
118
         for direction_wanted in test_data:
119
         for direction_wanted in test_data:
119
-            self._test_direction_point(test_data[direction_wanted], direction_wanted)
120
+            self._get_direction_for_point(test_data[direction_wanted], direction_wanted)