Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(6) | Call(6) | Derive(0) | Import(0)
src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_actiongroups.py ftw.lawgiver(Download)
def test_action_group_required(self): with self.assertRaises(ConfigurationError): self.load_map_permissions_zcml( '<lawgiver:map_permissions', ' permissions="Access contents information" />', ) def test_permissions_required(self): with self.assertRaises(ConfigurationError):
def test_permissions_required(self): with self.assertRaises(ConfigurationError): self.load_map_permissions_zcml( '<lawgiver:ignore', ' workflow="foo" />') def test_invalid_permission_syntax_detected(self): with self.assertRaises(ConfigurationError) as context_manager:
def test_detect_possible_missing_comma(self): with self.assertRaises(ConfigurationError) as cm: self.load_map_permissions_zcml( '<lawgiver:map_permissions', ' action_group="view"',
src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_unit.py ftw.lawgiver(Download)
generator = WorkflowGenerator() with self.assertRaises(Exception) as cm: generator('example-workflow', spec)