示例#1
0
 def testhandler2(self):
     response, channel = handler.handle_command(self.command2, self.channel,
                                                self.slack_client)
     self.assertNotIn(response, [
         "'sup bro", "hey", "sasriakaal", "hi", "namastey",
         "awesome girl if you are"
     ])
示例#2
0
 def testhandler(self):
     slack_client = 'aaqqwtttttttttt'
     response = handler.handle_command(self.command, self.channel,
                                       slack_client)
     self.assertIn(response, [
         "'sup bro", "hey", "sasriakaal", "hi", "namastey",
         "awesome girl if you are"
     ])
示例#3
0
 def testhandler4(self):
     slack_client = 'nnnnnn'
     channel = "nnnnnnnnn"
     command4 = "hi"
     response = handler.handle_command(command4, channel, slack_client)
     self.assertEqual(response, 'No events')
示例#4
0
 def testhandler6(self):
     response, channel = handler.handle_command('do', self.channel,
                                                self.slack_client)
     self.assertNotEqual(response, 'I am good, how are you doing today?')