base.py 399 B

123456789101112131415161718
  1. #
  2. # This file is part of pyasn1 software.
  3. #
  4. # Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
  5. # License: https://pyasn1.readthedocs.io/en/latest/license.html
  6. #
  7. import unittest
  8. from pyasn1 import debug
  9. class BaseTestCase(unittest.TestCase):
  10. def setUp(self):
  11. debug.setLogger(debug.Debug('all', printer=lambda *x: None))
  12. def tearDown(self):
  13. debug.setLogger(None)