Пример #1
0
 def test_run_command_without_args(self):
     mtype, resp = hug.run_command(None)
     self.assertEqual(mtype, 'groupchat')
     self.assertEqual(resp, 'Who should I hug?')
Пример #2
0
 def test_run_command_without_args(self):
     mtype, resp = hug.run_command(None)
     self.assertEqual(mtype, "groupchat")
     self.assertEqual(resp, "Who should I hug?")
Пример #3
0
 def test_run_command_with_args(self):
     mtype, resp = hug.run_command(None, 'foo')
     self.assertEqual(mtype, 'groupchat')
     self.assertEqual(resp, '/me hugs foo')
Пример #4
0
 def test_run_command_with_args(self):
     mtype, resp = hug.run_command(None, "foo")
     self.assertEqual(mtype, "groupchat")
     self.assertEqual(resp, "/me hugs foo")