kopia lustrzana https://github.com/ctjacobs/pyqso
Added another test for the autocomplete_band method.
rodzic
71e365ea22
commit
b2b20a2edc
|
@ -49,5 +49,10 @@ class TestRecordDialog(unittest.TestCase):
|
||||||
band = self.record_dialog.sources["BAND"].get_active_text()
|
band = self.record_dialog.sources["BAND"].get_active_text()
|
||||||
assert(band == "2m")
|
assert(band == "2m")
|
||||||
|
|
||||||
|
self.record_dialog.sources["FREQ"].get_text.return_value = "9001"
|
||||||
|
self.record_dialog.autocomplete_band()
|
||||||
|
band = self.record_dialog.sources["BAND"].get_active_text()
|
||||||
|
assert(band == "") # Frequency does not lie in any of the specified bands.
|
||||||
|
|
||||||
if(__name__ == '__main__'):
|
if(__name__ == '__main__'):
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Ładowanie…
Reference in New Issue