Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def test_about_slash_command(self):
     resp_ = slash.get_answer('/about')
     self.assertIsInstance(resp_, tuple)
     self.assertGreaterEqual(len(resp_[0]), 1)
Ejemplo n.º 5
0
 def test_unknown_slash_command(self):
     resp_ = slash.get_answer('/unknownSlashCommand')
     self.assertNotIsInstance(resp_, tuple)
     self.assertIsNone(resp_, None)