def test_wwan_when_raise_error(): c = DummyRadioControl(raise_error=Exception) with pytest.raises(Exception): c.wwan()
def test_wwan_when_no_arguments_are_passed(): c = DummyRadioControl() with pytest.raises(ValueError): c.wwan()
def test_wwan(): result_wwan = True c = DummyRadioControl(result_wwan=result_wwan) assert c.wwan() == result_wwan