diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-07-05 10:33:05 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-07-07 15:38:10 +0200 |
commit | 7afa36942e2dfc7557c1504dc1de5e7d42529dec (patch) | |
tree | f397c690ddff098a84dc0228e45eb1b4bcbf0860 /tests/hlapi/__main__.py | |
parent | 212e1b54c3d356e6da8a470187fa185be8aa172e (diff) | |
download | pysnmp-git-7afa36942e2dfc7557c1504dc1de5e7d42529dec.tar.gz |
WIP: Add unit tests covering hlapiadd-hlapi-unit-tests
Diffstat (limited to 'tests/hlapi/__main__.py')
-rw-r--r-- | tests/hlapi/__main__.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/hlapi/__main__.py b/tests/hlapi/__main__.py new file mode 100644 index 00000000..1828963c --- /dev/null +++ b/tests/hlapi/__main__.py @@ -0,0 +1,22 @@ +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> +# License: http://snmplabs.com/pysnmp/license.html +# +try: + import unittest2 as unittest + +except ImportError: + import unittest + +suite = unittest.TestLoader().loadTestsFromNames( + ['tests.hlapi.test_auth.suite', + 'tests.hlapi.test_context.suite', + 'tests.hlapi.test_lcd.suite', + 'tests.hlapi.test_varbinds.suite'] +) + + +if __name__ == '__main__': + unittest.TextTestRunner(verbosity=2).run(suite) |