Add a testcase for Command

This commit is contained in:
Felix Yan 2015-11-04 20:24:52 +08:00
parent f7287bdf56
commit f5fb79cc63
1 changed files with 10 additions and 0 deletions

10
tests/test_cmd.py Normal file
View File

@ -0,0 +1,10 @@
from tornado.ioloop import IOLoop
from tests.helper import ExternalVersionTestCase
class CMDTest(ExternalVersionTestCase):
def get_new_ioloop(self):
return IOLoop.instance()
def test_cmd(self):
self.assertEqual(self.sync_get_version("example", {"cmd": "echo Meow"}), "Meow")