コード例 #1
0
ファイル: test_radio.py プロジェクト: ryanteck/nmcli
def test_all_off_when_raise_error():
    c = DummyRadioControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.all_off()
コード例 #2
0
ファイル: test_radio.py プロジェクト: ryanteck/nmcli
def test_all_off():
    c = DummyRadioControl()
    c.all_off()
    assert c.called_all_off == 1