mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-31 03:35:39 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
23 lines
600 B
Python
23 lines
600 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import unittest
|
|
from SpiffWorkflow.bpmn.parser.ValidationException import ValidationException
|
|
from tests.SpiffWorkflow.bpmn.BpmnWorkflowTestCase import BpmnWorkflowTestCase
|
|
|
|
__author__ = 'michaelc'
|
|
|
|
|
|
class CancelBoundaryTest(BpmnWorkflowTestCase):
|
|
|
|
def testInvalidCancelEvent(self):
|
|
self.assertRaises(ValidationException, self.load_workflow_spec, 'invalid_cancel.bpmn', 'Process_1dagb7t')
|
|
|
|
|
|
def suite():
|
|
return unittest.TestLoader().loadTestsFromTestCase(CancelBoundaryTest)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.TextTestRunner(verbosity=2).run(suite())
|