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