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