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

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

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_wdl_specificaiton.py   ftw.lawgiver(Download)
    def test_VALIDATION_no_initial_status(self):
        obj = Specification('My Workflow')
        with self.assertRaises(ValueError) as cm:
            obj.validate()
 
    def test_VALIDATION_unkown_initial_status(self):
        obj = Specification('My Workflow', initial_status_title='Foo')
        with self.assertRaises(ValueError) as cm:
            obj.validate()
 
 
        with self.assertRaises(ValueError) as cm:
            obj.validate()
 
        self.assertEquals('"editor" in visible roles is not in role mapping.',

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_unit.py   ftw.lawgiver(Download)
                             initial_status_title='Foo')
        spec.states['Foo'] = Status('Foo', [])
        spec.validate()
 
        result = StringIO()
                             initial_status_title=status_title)
        spec.states[status_title] = Status(status_title, [])
        spec.validate()
 
        result = StringIO()
        spec.transitions.append(Transition('b\xc3\xa4rize', foo, bar))
        spec.transitions.append(Transition('f\xc3\xbcize', bar, foo))
        spec.validate()
 
        result = StringIO()
        spec.transitions.append(Transition('b\xc3\xa4rize', foo, bar))
        spec.transitions.append(Transition('f\xc3\xbcize', bar, foo))
        spec.validate()
 
        result = StringIO()
                ('admin', 'view'),
                ('admin', 'manage')])
        spec.validate()
 
        result = StringIO()