예제 #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)
예제 #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)
예제 #3
0
 def test_get_specification_returns_None_when_not_found(self):
     spec = get_specification('not a valid workflow id')
     self.assertIsNone(spec)
예제 #4
0
 def test_get_specification_returns_None_when_not_found(self):
     spec = get_specification('not a valid workflow id')
     self.assertIsNone(spec)