コード例 #1
0
ファイル: test_advice.py プロジェクト: 309972460/software
 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")
コード例 #2
0
ファイル: test_advice.py プロジェクト: 0004c/VTK
 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"
         )
コード例 #3
0
ファイル: test_advice.py プロジェクト: 309972460/software
 class Thing:
     ping([], 1)
コード例 #4
0
ファイル: test_advice.py プロジェクト: 309972460/software
 class Derived(Base1, Base2):
     __metaclass__ = Metaclass3
     ping([], 1)
コード例 #5
0
ファイル: test_advice.py プロジェクト: 309972460/software
 class Derived(Base1, Base2):
     ping([], 1)
コード例 #6
0
ファイル: test_advice.py プロジェクト: 309972460/software
 class Concrete(Metaclass):
     __metaclass__ = Metaclass
     ping([], 1)
コード例 #7
0
ファイル: test_advice.py プロジェクト: 309972460/software
 class Foo(object):
     ping(log, 1)
     ping(log, 2)
     ping(log, 3)