def test_persistence(self): '''Test that state persists.''' (top, note_dirty) = main.main( argv=['shinysdr', self.__config_name], _abort_for_test=True) self.assertEqual(top.get_unpaused(), True) # check initial assumption top.set_unpaused(False) note_dirty() (top2, _) = main.main( argv=['shinysdr', self.__config_name], _abort_for_test=True) self.assertEqual(top.get_unpaused(), False) # check persistence
def test_main_first_run_sources(self): """Regression: first run with no state file would fail due to assumptions about the source names.""" yield main.main(argv=['shinysdr', self.__config_name], _abort_for_test=True)
def __run_main(self): return main.main(argv=['shinysdr', self.__config_name], _abort_for_test=True)
def test_main_first_run_sources(self): '''Regression: first run with no state file would fail due to assumptions about the source names.''' main.main( argv=['shinysdr', self.__config_name], _abort_for_test=True)
def __run_main(self): return main.main( argv=['shinysdr', self.__config_name], _abort_for_test=True)