Пример #1
0
def test_wwan_on_when_raise_error():
    c = DummyRadioControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.wwan_on()
Пример #2
0
def test_wwan_on():
    c = DummyRadioControl()
    c.wwan_on()
    assert c.called_wwan_on == 1