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" ])
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" ])
def testhandler4(self): slack_client = 'nnnnnn' channel = "nnnnnnnnn" command4 = "hi" response = handler.handle_command(command4, channel, slack_client) self.assertEqual(response, 'No events')
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?')