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/base.py | |
parent | 212e1b54c3d356e6da8a470187fa185be8aa172e (diff) | |
download | pysnmp-git-add-hlapi-unit-tests.tar.gz |
WIP: Add unit tests covering hlapiadd-hlapi-unit-tests
Diffstat (limited to 'tests/base.py')
-rw-r--r-- | tests/base.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/base.py b/tests/base.py new file mode 100644 index 00000000..28011b32 --- /dev/null +++ b/tests/base.py @@ -0,0 +1,23 @@ +# +# 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 + +from pyasn1 import debug + + +class BaseTestCase(unittest.TestCase): + + def setUp(self): + debug.setLogger(debug.Debug('all', printer=lambda *x: None)) + + def tearDown(self): + debug.setLogger(None) |