testModules.py 440 B

1234567891011121314151617
  1. class TestModules():
  2. irc_server = "irc.zero9f9.com"
  3. def testBaseModule(self):
  4. from modules.basemodule import BaseModule
  5. def testExtension(self):
  6. import bot
  7. import confman
  8. from modules.basemodule import BaseModule
  9. b = bot.Bot(confman.ConfManager("pybotrc"), TestModules.irc_server, True)
  10. class testExtended(BaseModule):
  11. def post_init(self):
  12. pass
  13. assert issubclass(testExtended, BaseModule)