mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
11cc43d22d
This allows for tests to be written without too much change from the normal unittest workflow. Now they should use the 'saltunittest' namespace and we will need to import anything we need from the original 'unittest' or 'unittest2' namespace.
9 lines
195 B
Python
9 lines
195 B
Python
from saltunittest import TestCase, expectedFailure
|
|
|
|
class SimpleTest(TestCase):
|
|
def test_success(self):
|
|
assert True
|
|
@expectedFailure
|
|
def test_fail(self):
|
|
assert False
|