def test_reload_when_raise_error(): c = DummyConnectionControl(raise_error=Exception) with pytest.raises(Exception): c.reload()
def test_reload(): c = DummyConnectionControl() c.reload() assert c.called_reload == 1
def test_reload_when_raise_error(): c = DummyConnectionControl(raise_error=Exception) with pytest.raises(Exception): c.reload()
def test_reload(): c = DummyConnectionControl() c.reload() assert c.called_reload == 1