Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
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_basic.py 901B

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright (c) 2005 Divmod, Inc.
  2. # Copyright (c) Twisted Matrix Laboratories.
  3. # See LICENSE for details.
  4. # Don't change the docstring, it's part of the tests
  5. """
  6. I'm a test drop-in. The plugin system's unit tests use me. No one
  7. else should.
  8. """
  9. from zope.interface import provider
  10. from twisted.plugin import IPlugin
  11. from twisted.test.test_plugin import ITestPlugin, ITestPlugin2
  12. @provider(ITestPlugin, IPlugin)
  13. class TestPlugin:
  14. """
  15. A plugin used solely for testing purposes.
  16. """
  17. @staticmethod
  18. def test1():
  19. pass
  20. @provider(ITestPlugin2, IPlugin)
  21. class AnotherTestPlugin:
  22. """
  23. Another plugin used solely for testing purposes.
  24. """
  25. @staticmethod
  26. def test():
  27. pass
  28. @provider(ITestPlugin2, IPlugin)
  29. class ThirdTestPlugin:
  30. """
  31. Another plugin used solely for testing purposes.
  32. """
  33. @staticmethod
  34. def test():
  35. pass