Преглед на файлове

Removin unused and incorrect _assertStateChange method

This method is not used anywhere and could not work as it import code that is no longer there in:
from supervisor.events import getProcessStateChangeEventType
pombredanne преди 12 години
родител
ревизия
0f52474493
променени са 1 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 5
      supervisor/tests/test_events.py

+ 0 - 5
supervisor/tests/test_events.py

@@ -474,11 +474,6 @@ class TestUtilityFunctions(unittest.TestCase):
         for name, value in events.EventTypes.__dict__.items():
             self.assertEqual(events.getEventNameByType(value), name)
 
-    def _assertStateChange(self, old, new, expected):
-        from supervisor.events import getProcessStateChangeEventType
-        klass = getProcessStateChangeEventType(old, new)
-        self.assertEqual(expected, klass)
-
 
 def test_suite():
     return unittest.findTestCases(sys.modules[__name__])