add test_runningstate_remove for unit test
Change-Id: I3db2a946d0950c9b01ee8912c43f7704ffd97c5d
This commit is contained in:
parent
8b26e2738b
commit
97236a1609
|
@ -96,3 +96,15 @@ class TestSchedulerJob1(unittest.TestCase):
|
||||||
def test_runningstate_stop(self):
|
def test_runningstate_stop(self):
|
||||||
result = scheduler_job.RunningState.stop(self.job, {})
|
result = scheduler_job.RunningState.stop(self.job, {})
|
||||||
self.assertEqual(result, '')
|
self.assertEqual(result, '')
|
||||||
|
|
||||||
|
def test_runningstate_abort(self):
|
||||||
|
result = scheduler_job.RunningState.abort(self.job, self.jobdoc)
|
||||||
|
self.assertEqual(result, 'aborted')
|
||||||
|
|
||||||
|
def test_runningstate_start(self):
|
||||||
|
result = scheduler_job.RunningState.start(self.job, self.jobdoc)
|
||||||
|
self.assertEqual(result, '')
|
||||||
|
|
||||||
|
def test_runningstate_remove(self):
|
||||||
|
result = scheduler_job.RunningState.remove(self.job)
|
||||||
|
self.assertEqual(result, '')
|
||||||
|
|
Loading…
Reference in New Issue