summaryrefslogtreecommitdiff
path: root/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-11-22 09:09:45 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-22 09:10:13 +0100
commit470286ecfe79d59df14944e5b5d34630fc739391 (patch)
tree43983212872e06cebefd2ae474418fa2908ca54c /Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
parent23037105e948c2065da5a937d3a2396b0ff45c1e (diff)
downloadqtwebkit-470286ecfe79d59df14944e5b5d34630fc739391.tar.gz
Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485)
Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py')
-rw-r--r--Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py b/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
index f959ee149..26789ef05 100644
--- a/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
+++ b/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
@@ -83,12 +83,12 @@ class LoggingDelegate(QueueEngineDelegate):
def process_work_item(self, work_item):
self.record("process_work_item")
- self._test.assertEquals(work_item, "work_item")
+ self._test.assertEqual(work_item, "work_item")
return True
def handle_unexpected_error(self, work_item, message):
self.record("handle_unexpected_error")
- self._test.assertEquals(work_item, "work_item")
+ self._test.assertEqual(work_item, "work_item")
def stop_work_queue(self, message):
self.record("stop_work_queue")
@@ -120,8 +120,8 @@ class QueueEngineTest(unittest.TestCase):
def test_trivial(self):
delegate = LoggingDelegate(self)
self._run_engine(delegate)
- self.assertEquals(delegate.stop_message, "Delegate terminated queue.")
- self.assertEquals(delegate._callbacks, LoggingDelegate.expected_callbacks)
+ self.assertEqual(delegate.stop_message, "Delegate terminated queue.")
+ self.assertEqual(delegate._callbacks, LoggingDelegate.expected_callbacks)
self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "queue_log_path")))
self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "work_log_path", "work_item.log")))
@@ -133,12 +133,12 @@ class QueueEngineTest(unittest.TestCase):
# The unexpected error should be handled right after process_work_item starts
# but before any other callback. Otherwise callbacks should be normal.
expected_callbacks.insert(work_item_index + 1, 'handle_unexpected_error')
- self.assertEquals(delegate._callbacks, expected_callbacks)
+ self.assertEqual(delegate._callbacks, expected_callbacks)
def test_handled_error(self):
delegate = RaisingDelegate(self, ScriptError(exit_code=QueueEngine.handled_error_code))
self._run_engine(delegate)
- self.assertEquals(delegate._callbacks, LoggingDelegate.expected_callbacks)
+ self.assertEqual(delegate._callbacks, LoggingDelegate.expected_callbacks)
def _run_engine(self, delegate, engine=None, termination_message=None):
if not engine:
@@ -158,8 +158,8 @@ class QueueEngineTest(unittest.TestCase):
delegate = RaisingDelegate(self, exception)
self._run_engine(delegate, termination_message=termination_message)
- self.assertEquals(delegate._callbacks, expected_callbacks)
- self.assertEquals(delegate.stop_message, termination_message)
+ self.assertEqual(delegate._callbacks, expected_callbacks)
+ self.assertEqual(delegate.stop_message, termination_message)
def test_terminating_error(self):
self._test_terminating_queue(KeyboardInterrupt(), "User terminated queue.")