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