def test_all_when_raise_error(): c = DummyRadioControl(raise_error=Exception) with pytest.raises(Exception): c.all()
def test_all_when_no_arguments_are_passed(): c = DummyRadioControl() with pytest.raises(ValueError): c.all()
def test_all(): result_all = Radio(True, True, True, True) c = DummyRadioControl(result_all=result_all) assert c.all() == result_all