Exemplo n.º 1
0
 def TODOtest_outside(self):
     from zope.interface.tests.advisory_testing import ping
     # Disabled because the check does not work with doctest tests.
     try:
         ping([], 1)
     except SyntaxError:
         pass
     else:
         raise AssertionError(
             "Should have detected advice outside class body")
Exemplo n.º 2
0
 def TODOtest_outside(self):
     from zope.interface.tests.advisory_testing import ping
     # Disabled because the check does not work with doctest tests.
     try:
         ping([], 1)
     except SyntaxError:
         pass
     else:
         raise AssertionError(
             "Should have detected advice outside class body"
         )
Exemplo n.º 3
0
 class Thing:
     ping([], 1)
Exemplo n.º 4
0
 class Derived(Base1, Base2):
     __metaclass__ = Metaclass3
     ping([], 1)
Exemplo n.º 5
0
 class Derived(Base1, Base2):
     ping([], 1)
Exemplo n.º 6
0
 class Concrete(Metaclass):
     __metaclass__ = Metaclass
     ping([], 1)
Exemplo n.º 7
0
 class Foo(object):
     ping(log, 1)
     ping(log, 2)
     ping(log, 3)