瀏覽代碼

pheromones tests: rename fct

Bastien Sevajol 9 年之前
父節點
當前提交
4437fe3dcb
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      intelligine/tests/simulation/pheromone/TestDirection.py

+ 4 - 4
intelligine/tests/simulation/pheromone/TestDirection.py 查看文件

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