瀏覽代碼

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__])