mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
initial test class
This commit is contained in:
parent
5b83d74e2d
commit
37704129af
2 changed files with 10 additions and 6 deletions
|
@ -13,7 +13,7 @@ sys.path.insert(0, TEST_DIR)
|
|||
sys.path.insert(0, SALT_LIBS)
|
||||
|
||||
# Import salt libs
|
||||
from saltunittest import TestLoader, TextTestRunner, TestCase
|
||||
from saltunittest import TestLoader, TextTestRunner, TestCase, TestSuite
|
||||
import salt
|
||||
import salt.config
|
||||
import salt.master
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
from modules import run_module
|
||||
import saltunittest
|
||||
import daemon
|
||||
|
||||
class TestModuleTest(saltunittest.TestCase):
|
||||
class TestModuleTest(ModuleCase):
|
||||
'''
|
||||
Validate the test module
|
||||
'''
|
||||
def test_ping(self):
|
||||
ret = run_module('test.ping')
|
||||
assert ret == {'return': True}
|
||||
'''
|
||||
test.ping
|
||||
'''
|
||||
self.assertTrue(self.run_function('test.ping'))
|
||||
|
|
Loading…
Add table
Reference in a new issue