diff options
Diffstat (limited to 'test/unit.py')
-rw-r--r-- | test/unit.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit.py b/test/unit.py index 1bd927f3..b510b42c 100644 --- a/test/unit.py +++ b/test/unit.py @@ -27,6 +27,10 @@ class TestUnit(unittest.TestCase): if '--leave' not in sys.argv:
shutil.rmtree(self.testdir)
+ def assertTry(self, assert_method, description, *args):
+ try: getattr(self, assert_method)(*args, description)
+ except AssertionError: print('not yet: ' + description)
+
def check_modules(self, *modules):
self._run()
|