def test_state_switch_module_load_debug(): with pytest.raises(RuntimeError): deal.module_load() try: deal.disable() deal.activate() deal.enable() finally: deactivate() deal.reset()
def tearDown(self): deal.reset()
def setUp(self): deal.reset()