Ejemplo n.º 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?')
Ejemplo n.º 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?")
Ejemplo n.º 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')
Ejemplo n.º 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")