add test_scheduledstate_stop for unit test
Change-Id: I75b4025cb207bb0aa59c4325819add1be45cf08e
This commit is contained in:
parent
50885c1041
commit
0ea6b00494
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue