def testLocalConfig(self): with ErtTestContext("python/enkf/data/local_config", self.config) as test_context: main = test_context.getErt() self.assertTrue(main, "Load failed") local_config = main.getLocalConfig() self.AllActive(local_config) local_config.clear() self.MiniStep(local_config) self.AttachMinistep(local_config) self.LocalDataset(local_config) self.LocalObsdata(local_config) local_config_file_summary = "local_config_summary.txt" local_config.writeSummaryFile(local_config_file_summary) self.assertTrue(os.path.isfile(local_config_file_summary)) local_config_file = "local_config.txt" local_config.writeLocalConfigFile(local_config_file) self.assertTrue(os.path.isfile(local_config_file)) self.clear(local_config) grid = local_config.getGrid() self.assertTrue(isinstance(grid, EclGrid))
def testLocalConfig(self): with ErtTestContext("python/enkf/data/local_config", self.config) as test_context: main = test_context.getErt() self.assertTrue(main, "Load failed") local_config = main.getLocalConfig() self.AllActive(local_config) local_config.clear() self.MiniStep(local_config) self.AttachMinistep(local_config) self.LocalDataset(local_config) self.LocalObsdata(local_config) local_config_file_summary = "local_config_summary.txt" local_config.writeSummaryFile( local_config_file_summary ) self.assertTrue( os.path.isfile( local_config_file_summary )) local_config_file = "local_config.txt" local_config.writeLocalConfigFile( local_config_file ) self.assertTrue( os.path.isfile( local_config_file )) self.clear(local_config) grid = local_config.getGrid() self.assertTrue( isinstance( grid , EclGrid ))
def testLocalConfig(self): with ErtTestContext("python/enkf/data/local_config", self.config) as test_context: main = test_context.getErt() self.assertTrue(main, "Load failed") local_config = main.getLocalConfig() self.UpdateStep(local_config) self.MiniStep(local_config) self.AttachMinistep(local_config) self.LocalDataset(local_config) self.LocalObsdata(local_config) sfile = "local_config.txt" local_config.writeLocalConfigFile( sfile ) self.assertTrue( os.path.isfile( sfile ))