| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2005 Divmod, Inc. | |
| 2 # Copyright (c) 2007 Twisted Matrix Laboratories. | |
| 3 # See LICENSE for details. | |
| 4 | |
| 5 # Don't change the docstring, it's part of the tests | |
| 6 """ | |
| 7 I'm a test drop-in. The plugin system's unit tests use me. No one | |
| 8 else should. | |
| 9 """ | |
| 10 | |
| 11 from zope.interface import classProvides | |
| 12 | |
| 13 from twisted.plugin import IPlugin | |
| 14 from twisted.test.test_plugin import ITestPlugin, ITestPlugin2 | |
| 15 | |
| 16 | |
| 17 | |
| 18 class TestPlugin: | |
| 19 """ | |
| 20 A plugin used solely for testing purposes. | |
| 21 """ | |
| 22 | |
| 23 classProvides(ITestPlugin, | |
| 24 IPlugin) | |
| 25 | |
| 26 def test1(): | |
| 27 pass | |
| 28 test1 = staticmethod(test1) | |
| 29 | |
| 30 | |
| 31 | |
| 32 class AnotherTestPlugin: | |
| 33 """ | |
| 34 Another plugin used solely for testing purposes. | |
| 35 """ | |
| 36 | |
| 37 classProvides(ITestPlugin2, | |
| 38 IPlugin) | |
| 39 | |
| 40 def test(): | |
| 41 pass | |
| 42 test = staticmethod(test) | |
| 43 | |
| 44 | |
| 45 | |
| 46 class ThirdTestPlugin: | |
| 47 """ | |
| 48 Another plugin used solely for testing purposes. | |
| 49 """ | |
| 50 | |
| 51 classProvides(ITestPlugin2, | |
| 52 IPlugin) | |
| 53 | |
| 54 def test(): | |
| 55 pass | |
| 56 test = staticmethod(test) | |
| 57 | |
| OLD | NEW |