コード例 #1
0
 def teardownClass(cls):
     for id in cls.tsk_ids:
         db_api.task_destroy('', id)
     for name in cls.wf_names:
         db_api.workflow_destroy('', name)
     cls.tsk_ids = []
     cls.tsk_names = []
     cls.wf_ids = []
     cls.wf_names = []
コード例 #2
0
 def teardownClass(cls):
     for id in cls.tsk_ids:
         db_api.task_destroy('', id)
     for name in cls.wf_names:
         db_api.workflow_destroy('', name)
     cls.tsk_ids = []
     cls.tsk_names = []
     cls.wf_ids = []
     cls.wf_names = []
コード例 #3
0
    def test_task_destroy(self):
        id = self.tsk_ids.pop()
        db_api.task_destroy('', id)
        self.tsk_names.pop()

        self.assertRaises(exception.NotFound, db_api.task_get, '', id)
コード例 #4
0
 def teardownClass(cls):
     for id in cls.tsk_ids:
         db_api.task_destroy('', id)
     cls.tsk_ids = []
     cls.tsk_names = []
コード例 #5
0
    def test_task_destroy(self):
        id = self.tsk_ids.pop()
        db_api.task_destroy('', id)
        self.tsk_names.pop()

        self.assertRaises(exception.NotFound, db_api.task_get, '', id)
コード例 #6
0
 def teardownClass(cls):
     for id in cls.tsk_ids:
         db_api.task_destroy('', id)
     cls.tsk_ids = []
     cls.tsk_names = []