def test_slash_command_with_strange_characters(self): resp_ = slash.get_answer('/about@dd@dd@dd') self.assertIsInstance(resp_, tuple) self.assertGreaterEqual(len(resp_[0]), 1)
def test_about_slash_command_with_botname_attached(self): resp_ = slash.get_answer('/about@botname') self.assertIsInstance(resp_, tuple) self.assertGreaterEqual(len(resp_[0]), 1)
def test_unknown_slash_command_with_botname_attached(self): resp_ = slash.get_answer('/unknownSlashCommand@botname') self.assertNotIsInstance(resp_, tuple) self.assertIsNone(resp_, None)
def test_about_slash_command(self): resp_ = slash.get_answer('/about') self.assertIsInstance(resp_, tuple) self.assertGreaterEqual(len(resp_[0]), 1)
def test_unknown_slash_command(self): resp_ = slash.get_answer('/unknownSlashCommand') self.assertNotIsInstance(resp_, tuple) self.assertIsNone(resp_, None)