Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def test_get_specification_returns_None_when_not_found(self):
     spec = get_specification('not a valid workflow id')
     self.assertIsNone(spec)
Ejemplo n.º 4
0
 def test_get_specification_returns_None_when_not_found(self):
     spec = get_specification('not a valid workflow id')
     self.assertIsNone(spec)