def test_get_specification(self): spec = get_specification('my_custom_workflow') self.assertTrue(spec, 'Could not find "my_custom_workflow" specification') self.assertTrue(ISpecification.providedBy(spec)) self.assertEquals('My Custom Workflow', spec.title)
def test_get_specification_returns_None_when_not_found(self): spec = get_specification('not a valid workflow id') self.assertIsNone(spec)