testModules.py 398 B

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