Example #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")
Example #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"
         )
Example #3
0
 class Thing:
     ping([], 1)
Example #4
0
 class Derived(Base1, Base2):
     __metaclass__ = Metaclass3
     ping([], 1)
Example #5
0
 class Derived(Base1, Base2):
     ping([], 1)
Example #6
0
 class Concrete(Metaclass):
     __metaclass__ = Metaclass
     ping([], 1)
Example #7
0
 class Foo(object):
     ping(log, 1)
     ping(log, 2)
     ping(log, 3)