mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add test.echo test
This commit is contained in:
parent
21cebcc091
commit
4f2564e95c
1 changed files with 8 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue