Add test.echo test

This commit is contained in:
Thomas S Hatch 2012-02-12 16:34:42 -07:00
parent 21cebcc091
commit 4f2564e95c

View file

@ -1,6 +1,6 @@
import daemon
import saltunittest
class TestModuleTest(daemon.ModuleCase):
class TestModuleTest(saltunittest.ModuleCase):
'''
Validate the test module
'''
@ -9,3 +9,9 @@ class TestModuleTest(daemon.ModuleCase):
test.ping
'''
self.assertTrue(self.run_function('test.ping'))
def test_echo(self):
'''
test.echo
'''
self.assertEqual(self.run_function('test.echo', ['text']), 'text')