~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/twisted/test/crash_test_dummy.py

  • Committer: Andreas Hasenack
  • Date: 2009-07-20 17:49:16 UTC
  • Revision ID: andreas@canonical.com-20090720174916-g2tn6qmietz2hn0u
Revert twisted removal, it breaks several dozen tests [trivial]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
 
3
# See LICENSE for details.
 
4
 
 
5
 
 
6
from twisted.python import components
 
7
from zope.interface import implements, Interface
 
8
 
 
9
def foo():
 
10
    return 2
 
11
 
 
12
class X:
 
13
    def __init__(self, x):
 
14
        self.x = x
 
15
 
 
16
    def do(self):
 
17
        #print 'X',self.x,'doing!'
 
18
        pass
 
19
 
 
20
 
 
21
class XComponent(components.Componentized):
 
22
    pass
 
23
 
 
24
class IX(Interface):
 
25
    pass
 
26
 
 
27
class XA(components.Adapter):
 
28
    implements(IX)
 
29
 
 
30
    def method(self):
 
31
        # Kick start :(
 
32
        pass
 
33
 
 
34
components.registerAdapter(XA, X, IX)