def test_get_fix_case_insensitive(self): self.assertListEqual( Fix.get_fixes('CMIP5', 'CanESM2', 'Amon', 'fgCo2'), [FgCo2(None)])
def test_get_fix(self): self.assertListEqual( Fix.get_fixes('CMIP5', 'CanESM2', 'Amon', 'fgco2'), [FgCo2(None)])
def setUp(self): """Prepare tests.""" self.cube = Cube([1.0], var_name='fgco2', units='J') self.fix = FgCo2()
def test_get(self): """Test fix get""" self.assertListEqual(Fix.get_fixes('CMIP5', 'CANESM2', 'fgco2'), [FgCo2()])
def test_get_fix_case_insensitive(self): from esmvalcore.cmor._fixes.cmip5.canesm2 import FgCo2 self.assertListEqual(Fix.get_fixes('CMIP5', 'CanESM2', 'fgCo2'), [FgCo2()])