Browse Source

Merge "Replace 'assertTrue(a in b)' with 'assertIn(a, b)'"

changes/13/403413/4
Jenkins 5 years ago
committed by Gerrit Code Review
parent
commit
23451d2c72
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      karbor/tests/unit/operationengine/engine/executors/test_green_thread_executor.py

+ 3
- 3
karbor/tests/unit/operationengine/engine/executors/test_green_thread_executor.py View File

@ -57,7 +57,7 @@ class GreenThreadExecutorTestCase(base.TestCase):
window_time = 30
self._executor.execute_operation(self._op_id, now, now, window_time)
self.assertTrue(self._op_id in self._executor._operation_thread_map)
self.assertIn(self._op_id, self._executor._operation_thread_map)
eventlet.sleep(1)
@ -77,7 +77,7 @@ class GreenThreadExecutorTestCase(base.TestCase):
self._executor.resume_operation(self._op_id, end_time_for_run=(
now + timedelta(seconds=window_time)))
self.assertTrue(self._op_id in self._executor._operation_thread_map)
self.assertIn(self._op_id, self._executor._operation_thread_map)
eventlet.sleep(1)
@ -95,7 +95,7 @@ class GreenThreadExecutorTestCase(base.TestCase):
window_time = 30
self._executor.execute_operation(self._op_id, now, now, window_time)
self.assertTrue(self._op_id in self._executor._operation_thread_map)
self.assertIn(self._op_id, self._executor._operation_thread_map)
self._executor.cancel_operation(self._op_id)


Loading…
Cancel
Save