Exemple #1
0
def test_all_on_when_raise_error():
    c = DummyRadioControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.all_on()
Exemple #2
0
def test_all_on():
    c = DummyRadioControl()
    c.all_on()
    assert c.called_all_on == 1