예제 #1
0
def test_wwan_when_raise_error():
    c = DummyRadioControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.wwan()
예제 #2
0
def test_wwan_when_no_arguments_are_passed():
    c = DummyRadioControl()
    with pytest.raises(ValueError):
        c.wwan()
예제 #3
0
def test_wwan():
    result_wwan = True
    c = DummyRadioControl(result_wwan=result_wwan)
    assert c.wwan() == result_wwan