add test_scheduledstate_stop for unit test

Change-Id: I75b4025cb207bb0aa59c4325819add1be45cf08e
This commit is contained in:
gecong1973 2021-02-04 21:56:07 -08:00
parent 50885c1041
commit 0ea6b00494
1 changed files with 8 additions and 0 deletions

View File

@ -72,3 +72,11 @@ class TestSchedulerJob1(unittest.TestCase):
def test_stopstate_start(self):
result = scheduler_job.StopState.start(self.job, self.jobdoc)
self.assertEqual(result, '')
def test_stopstate_remove(self):
result = scheduler_job.StopState.remove(self.job)
self.assertEqual(result, '')
def test_scheduledstate_stop(self):
result = scheduler_job.ScheduledState.stop(self.job, self.jobdoc)
self.assertEqual(result, 'stop')