Skip to content

Commit

Permalink
FInish coverage for z.s.metaconfigure.ClasDirective.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 12, 2013
1 parent d766556 commit f5b0e31
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/zope/security/tests/test_zcml_functest.py
Expand Up @@ -412,6 +412,22 @@ def assertDeclaration(self, declaration, **state):
# "testSimple*" exercises tags that do NOT have children. This mode
# inherently sets the instances as well as the class attributes.

@_skip_wo_zope_configuration
def test_wo_any_attributes(self):
from zope.configuration.exceptions import ConfigurationError
from zope.security.tests import module
declaration = ('''<class class="%s">
<require
permission="%s" />
</class>'''
% (_pfx("test_class"), P1))
self.assertRaises(ConfigurationError,
apply_declaration,
module.template_bracket % declaration)

# "testSimple*" exercises tags that do NOT have children. This mode
# inherently sets the instances as well as the class attributes.

@_skip_wo_zope_configuration
def testSimpleMethodsPlural(self):
declaration = ('''<class class="%s">
Expand Down

0 comments on commit f5b0e31

Please sign in to comment.