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