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

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

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_wdl_parser.py   ftw.lawgiver(Download)
from ftw.lawgiver.wdl.interfaces import ISpecification
from ftw.lawgiver.wdl.interfaces import IWorkflowSpecificationParser
from ftw.lawgiver.wdl.parser import PERMISSION_STATEMENT
from ftw.lawgiver.wdl.parser import WORKLIST_STATEMENT
from ftw.lawgiver.wdl.parser import convert_statement
    def test_simple_context_specific_statements(self):
        self.assert_statement((PERMISSION_STATEMENT, ('editor', 'view')),
                              'An editor can view this content.')
 
        self.assert_statement((PERMISSION_STATEMENT, ('supervisor', 'edit')),
                              'A supervisor can edit this content')
 
    def test_anyone_statements(self):
        self.assert_statement((PERMISSION_STATEMENT, ('anyone', 'view')),
    def test_context_less_statements(self):
        self.assert_statement((PERMISSION_STATEMENT, ('editor', 'publish')),
                              'An editor can publish.')
 
    def test_multi_word_statements(self):