Exemplo n.º 1
0
def test_reload_when_raise_error():
    c = DummyConnectionControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.reload()
Exemplo n.º 2
0
def test_reload():
    c = DummyConnectionControl()
    c.reload()
    assert c.called_reload == 1