add test_stopstate_abort for unit test

Change-Id: I850f92470380de21b91406eda28ca01339b61d43
This commit is contained in:
gecong1973 2021-02-04 19:06:38 -08:00
parent 04023a0092
commit 50885c1041
1 changed files with 8 additions and 0 deletions

View File

@ -64,3 +64,11 @@ class TestSchedulerJob1(unittest.TestCase):
def test_stopstate_stop(self):
result = scheduler_job.StopState.stop(self.job, self.jobdoc)
self.assertEqual(result, '')
def test_stopstate_abort(self):
result = scheduler_job.StopState.abort(self.job, self.jobdoc)
self.assertEqual(result, '')
def test_stopstate_start(self):
result = scheduler_job.StopState.start(self.job, self.jobdoc)
self.assertEqual(result, '')