mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
add an __init__ method to see when it gets called, fix debugging
This commit is contained in:
parent
be197b511a
commit
949108e2d5
|
@ -46,8 +46,12 @@ class TestCaseTemplate(unittest.TestCase):
|
||||||
def teardown_class(cls):
|
def teardown_class(cls):
|
||||||
if _debug: TestCaseTemplate._debug("teardown_class")
|
if _debug: TestCaseTemplate._debug("teardown_class")
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
if _debug: TestCaseTemplate._debug("__init__ %r %r", args, kwargs)
|
||||||
|
super(TestCaseTemplate, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
def setup_method(self, method):
|
def setup_method(self, method):
|
||||||
if _debug: TestCaseTemplate._debug("setup_module %r", method)
|
if _debug: TestCaseTemplate._debug("setup_method %r", method)
|
||||||
|
|
||||||
def teardown_method(self, method):
|
def teardown_method(self, method):
|
||||||
if _debug: TestCaseTemplate._debug("teardown_method %r", method)
|
if _debug: TestCaseTemplate._debug("teardown_method %r", method)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user