You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin_extra2.py 579B

5 years ago
12345678910111213141516171819202122232425262728293031
  1. # Copyright (c) 2005 Divmod, Inc.
  2. # Copyright (c) Twisted Matrix Laboratories.
  3. # See LICENSE for details.
  4. """
  5. Test plugin used in L{twisted.test.test_plugin}.
  6. """
  7. from zope.interface import provider
  8. from twisted.plugin import IPlugin
  9. from twisted.test.test_plugin import ITestPlugin
  10. @provider(ITestPlugin, IPlugin)
  11. class FourthTestPlugin:
  12. def test1():
  13. pass
  14. test1 = staticmethod(test1)
  15. @provider(ITestPlugin, IPlugin)
  16. class FifthTestPlugin:
  17. """
  18. More documentation: I hate you.
  19. """
  20. def test1():
  21. pass
  22. test1 = staticmethod(test1)