Browse Source

pheromones tests: rename fct

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

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

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