Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def test_unknown_slash_command_with_botname_attached(self):
     resp_ = slash.get_answer('/unknownSlashCommand@botname')
     self.assertNotIsInstance(resp_, tuple)
     self.assertIsNone(resp_, None)
Пример #4
0
 def test_about_slash_command(self):
     resp_ = slash.get_answer('/about')
     self.assertIsInstance(resp_, tuple)
     self.assertGreaterEqual(len(resp_[0]), 1)
Пример #5
0
 def test_unknown_slash_command(self):
     resp_ = slash.get_answer('/unknownSlashCommand')
     self.assertNotIsInstance(resp_, tuple)
     self.assertIsNone(resp_, None)