summaryrefslogtreecommitdiff
path: root/tests/base.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-07-05 10:33:05 +0200
committerIlya Etingof <etingof@gmail.com>2018-07-07 15:38:10 +0200
commit7afa36942e2dfc7557c1504dc1de5e7d42529dec (patch)
treef397c690ddff098a84dc0228e45eb1b4bcbf0860 /tests/base.py
parent212e1b54c3d356e6da8a470187fa185be8aa172e (diff)
downloadpysnmp-git-7afa36942e2dfc7557c1504dc1de5e7d42529dec.tar.gz
WIP: Add unit tests covering hlapiadd-hlapi-unit-tests
Diffstat (limited to 'tests/base.py')
-rw-r--r--tests/base.py23
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)