MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / do_test_vfo

Method do_test_vfo

bindings/python/test_rig.py:58–69  ·  view source on GitHub ↗

VFO tests

(self, rig)

Source from the content-addressed store, hash-verified

56
57
58 def do_test_vfo(self, rig):
59 """VFO tests"""
60
61 assert rig.set_vfo(Hamlib.RIG_VFO_A) is None
62 assert rig.get_vfo() == Hamlib.RIG_VFO_A
63 assert rig.set_split_vfo(Hamlib.RIG_SPLIT_OFF, Hamlib.RIG_VFO_A) is None
64 assert rig.get_split_vfo(Hamlib.RIG_VFO_TX) == [Hamlib.RIG_SPLIT_OFF, Hamlib.RIG_VFO_A]
65 assert rig.set_split_vfo(Hamlib.RIG_SPLIT_ON, Hamlib.RIG_VFO_B) is None
66 assert rig.get_split_vfo(Hamlib.RIG_VFO_TX) == [Hamlib.RIG_SPLIT_ON, Hamlib.RIG_VFO_B]
67 assert rig.set_split_vfo(Hamlib.RIG_SPLIT_OFF, Hamlib.RIG_VFO_CURR) is None
68 assert rig.get_split_vfo() == [Hamlib.RIG_SPLIT_OFF, Hamlib.RIG_VFO_B]
69 assert rig.get_split_vfo(Hamlib.RIG_VFO_CURR) == [Hamlib.RIG_SPLIT_OFF, Hamlib.RIG_VFO_B]
70
71
72 def do_test_rit_xit(self, rig):

Callers 1

test_with_openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected