Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_unit.py   ftw.lawgiver(Download)
from StringIO import StringIO
from ftw.lawgiver.collector import DefaultPermissionCollector
from ftw.lawgiver.generator import WorkflowGenerator
from ftw.lawgiver.generator import resolve_inherited_roles
from ftw.lawgiver.interfaces import IPermissionCollector
        spec.validate()
 
        generator = WorkflowGenerator()
 
        with self.assertRaises(Exception) as cm:
            generator('example-workflow', spec)