Exemplo n.º 1
0
 def runTest(self):
     wiki = WikiLookup()
     res = wiki.lookup("solar eclipse")
     self.assertTrue(len(res) > 100)
     self.assertFalse("Sorry, I don't know!" in res)
Exemplo n.º 2
0
 def command_105_default(self, user, message, args):
     '''(what|who)\s+(is|are)\s+(.*)'''
     print args[2]
     wiki = WikiLookup()
     self.replyMessage(user, wiki.lookup(args[2]))