initial test class

This commit is contained in:
Thomas S Hatch 2012-02-12 02:05:35 -07:00
parent 5b83d74e2d
commit 37704129af
2 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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'))