def teardown_function(func): handlers.unregister_all()
def setup_function(func): handlers.unregister_all()