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

Method do_test_frequency

bindings/python/test_rig.py:45–55  ·  view source on GitHub ↗

Frequency tests

(self, rig)

Source from the content-addressed store, hash-verified

43
44
45 def do_test_frequency(self, rig):
46 """Frequency tests"""
47
48 # TODO use a frequency suitable for the VFO
49 frequency = 5700000000
50 assert rig.set_freq(Hamlib.RIG_VFO_CURR, frequency) is None
51 assert rig.get_freq() == 5700000000.0
52 frequency = 5700000000.5
53 assert rig.set_freq(Hamlib.RIG_VFO_CURR, frequency) is None
54 assert isinstance(rig.get_freq(Hamlib.RIG_VFO_CURR), float)
55 assert rig.get_freq(Hamlib.RIG_VFO_CURR) == 5700000000.5
56
57
58 def do_test_vfo(self, rig):

Callers 1

test_with_openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected