def test_keywords_for_monitoring_simulation_runtime(self): ac = AnalysisConfig() ac.set_min_realisations( 100 ) self.assertEqual( 100 , ac.getMinRealisations() ) ac.set_max_runtime( 50 ) self.assertEqual( 50 , ac.get_max_runtime() ) ac.set_stop_long_running( True ) self.assertTrue( ac.get_stop_long_running() )
def test_keywords_for_monitoring_simulation_runtime(self): ac = AnalysisConfig() ac.set_min_realisations(100) self.assertEqual(100, ac.getMinRealisations()) ac.set_max_runtime(50) self.assertEqual(50, ac.get_max_runtime()) ac.set_stop_long_running(True) self.assertTrue(ac.get_stop_long_running())
def test_keywords_for_monitoring_simulation_runtime(self): ac = AnalysisConfig() # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations. self.assertFalse(ac.haveEnoughRealisations(5, 10)) self.assertTrue(ac.haveEnoughRealisations(10, 10)) ac.set_max_runtime( 50 ) self.assertEqual( 50 , ac.get_max_runtime() ) ac.set_stop_long_running( True ) self.assertTrue( ac.get_stop_long_running() )
def test_keywords_for_monitoring_simulation_runtime(self): ac = AnalysisConfig() # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations. self.assertFalse(ac.haveEnoughRealisations(5, 10)) self.assertTrue(ac.haveEnoughRealisations(10, 10)) ac.set_max_runtime(50) self.assertEqual(50, ac.get_max_runtime()) ac.set_stop_long_running(True) self.assertTrue(ac.get_stop_long_running())