def test_wwan_off_when_raise_error(): c = DummyRadioControl(raise_error=Exception) with pytest.raises(Exception): c.wwan_off()
def test_wwan_off(): c = DummyRadioControl() c.wwan_off() assert c.called_wwan_off == 1
def test_wwan_off_when_raise_error(): c = DummyRadioControl(raise_error=Exception) with pytest.raises(Exception): c.wwan_off()
def test_wwan_off(): c = DummyRadioControl() c.wwan_off() assert c.called_wwan_off == 1