aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/test/plugin_basic.py
blob: a4c297b8d9b1254327d841af222614fab01347ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright (c) 2005 Divmod, Inc.
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

# Don't change the docstring, it's part of the tests
"""
I'm a test drop-in.  The plugin system's unit tests use me.  No one
else should.
"""

from zope.interface import classProvides

from twisted.plugin import IPlugin
from twisted.test.test_plugin import ITestPlugin, ITestPlugin2



class TestPlugin:
    """
    A plugin used solely for testing purposes.
    """

    classProvides(ITestPlugin,
                  IPlugin)

    def test1():
        pass
    test1 = staticmethod(test1)



class AnotherTestPlugin:
    """
    Another plugin used solely for testing purposes.
    """

    classProvides(ITestPlugin2,
                  IPlugin)

    def test():
        pass
    test = staticmethod(test)



class ThirdTestPlugin:
    """
    Another plugin used solely for testing purposes.
    """

    classProvides(ITestPlugin2,
                  IPlugin)

    def test():
        pass
    test = staticmethod(test)