Exemple #1
0
	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
Exemple #2
0
 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)
Exemple #3
0
 def __run_main(self):
     return main.main(argv=['shinysdr', self.__config_name],
                      _abort_for_test=True)
Exemple #4
0
	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)
Exemple #5
0
 def __run_main(self):
     return main.main(
         argv=['shinysdr', self.__config_name],
         _abort_for_test=True)