class StdEnKFDebugTest(ExtendedTestCase): def setUp(self): self.rng = RandomNumberGenerator(RngAlgTypeEnum.MZRAN, RngInitModeEnum.INIT_DEFAULT) self.libname = ert.ert_lib_path + "/std_enkf_debug.so" self.module = AnalysisModule(self.rng, lib_name=self.libname) def toggleKey(self, key): self.assertTrue(self.module.hasVar(key)) # check it is true self.assertTrue(self.module.setVar(key, True)) self.assertTrue(self.module.getBool(key)) # set it to false self.assertTrue(self.module.setVar(key, False)) self.assertFalse(self.module.getBool(key)) def test_EE_option(self): self.toggleKey('USE_EE') def test_scaledata_option(self): self.toggleKey('ANALYSIS_SCALE_DATA') def test_prefix(self): self.assertTrue(self.module.hasVar("PREFIX")) self.assertTrue(self.module.setVar("PREFIX", "Path"))
class StdEnKFDebugTest(ExtendedTestCase): def setUp(self): self.rng = RandomNumberGenerator(RngAlgTypeEnum.MZRAN, RngInitModeEnum.INIT_DEFAULT) self.libname = ert.ert_lib_path + "/std_enkf_debug.so" self.module = AnalysisModule(self.rng, lib_name=self.libname) def toggleKey(self, key): self.assertTrue(self.module.hasVar(key)) # check it is true self.assertTrue(self.module.setVar(key, True)) self.assertTrue(self.module.getBool(key)) # set it to false self.assertTrue(self.module.setVar(key, False)) self.assertFalse(self.module.getBool(key)) def test_EE_option(self): self.toggleKey("USE_EE") def test_scaledata_option(self): self.toggleKey("ANALYSIS_SCALE_DATA") def test_prefix(self): self.assertTrue(self.module.hasVar("PREFIX")) self.assertTrue(self.module.setVar("PREFIX", "Path"))
class StdEnKFTest(ExtendedTestCase): def setUp(self): self.rng = RandomNumberGenerator(RngAlgTypeEnum.MZRAN, RngInitModeEnum.INIT_DEFAULT) self.module = AnalysisModule( self.rng , name = "STD_ENKF" ) def toggleKey(self, key): self.assertTrue( self.module.hasVar( key )) # check it is true self.assertTrue( self.module.setVar( key , True ) ) self.assertTrue( self.module.getBool(key) ) # set it to false self.assertTrue( self.module.setVar( key , False ) ) self.assertFalse( self.module.getBool(key) ) def test_EE_option(self): self.toggleKey( 'USE_EE' ) def test_GE_option(self): self.toggleKey( 'USE_GE' ) def test_scaledata_option(self): self.toggleKey( 'ANALYSIS_SCALE_DATA' )
class StdEnKFTest(ExtendedTestCase): def setUp(self): self.rng = RandomNumberGenerator(RngAlgTypeEnum.MZRAN, RngInitModeEnum.INIT_DEFAULT) self.module = AnalysisModule(self.rng, name="STD_ENKF") def toggleKey(self, key): self.assertTrue(self.module.hasVar(key)) # check it is true self.assertTrue(self.module.setVar(key, True)) self.assertTrue(self.module.getBool(key)) # set it to false self.assertTrue(self.module.setVar(key, False)) self.assertFalse(self.module.getBool(key)) def test_EE_option(self): self.toggleKey('USE_EE') def test_scaledata_option(self): self.toggleKey('ANALYSIS_SCALE_DATA')