def test_summary_keys(self): with ErtTestContext("enkf_key_manager_test", self.config_file) as testContext: ert = testContext.getErt() key_man = KeyManager(ert) self.assertEqual(len(key_man.summaryKeys()), 47) self.assertTrue("FOPT" in key_man.summaryKeys()) self.assertEqual(len(key_man.summaryKeysWithObservations()), 2) self.assertTrue("FOPR" in key_man.summaryKeysWithObservations()) self.assertTrue(key_man.isKeyWithObservations("FOPR"))
def getAllObservationKeys(ert: EnKFMain): """ @type ert: EnKFMain @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.summaryKeysWithObservations()