python/ray/tune/tests/test_ray_trial_executor.py
def testPauseResume(self):
        """Tests that pausing works for trials in flight."""
        trial = Trial("__fake")
        self._simulate_starting_trial(trial)

        self.trial_executor.pause_trial(trial)
        self.assertEqual(Trial.PAUSED, trial.status)

        self._simulate_starting_trial(trial)

        self.trial_executor.stop_trial(trial)
        self.assertEqual(Trial.TERMINATED, trial.status)
Tests that pausing works for trials in flight.
Tests that pausing works for trials in flight.
Tests that pausing works for trials in flight .
def testPauseResume(self):
        trial = Trial("__fake")
        self._simulate_starting_trial(trial)
        self.trial_executor.pause_trial(trial)
        self.assertEqual(Trial.PAUSED, trial.status)
        self._simulate_starting_trial(trial)
        self.trial_executor.stop_trial(trial)
        self.assertEqual(Trial.TERMINATED, trial.status)
def testPauseResume ( self ) : trial = Trial ( "__fake" ) self . _simulate_starting_trial ( trial ) self . trial_executor . pause_trial ( trial ) self . assertEqual ( Trial . PAUSED , trial . status ) self . _simulate_starting_trial ( trial ) self . trial_executor . stop_trial ( trial ) self . assertEqual ( Trial . TERMINATED , trial . status )
Tests that pausing works for trials in flight.
Tests that pausing works for trials in flight .
"""Tests that pausing works for trials in flight."""
self