Example #1
0
def test_get_split_freq(fake_target):
    rigctl = RigCtl(fake_target)
    rigctl._request = MagicMock()
    rigctl._request.return_value = 22
    assert(rigctl.get_split_freq() == 22)
Example #2
0
def test_get_split_freq_error(fake_target):
    rigctl = RigCtl(fake_target)
    rigctl._request = MagicMock()
    rigctl._request.return_value = "22"
    with pytest.raises(ValueError):
        rigctl.get_split_freq()