Пример #1
0
 def test_invalid_standard_name(self):
     cf_var = CFVariableMixin()
     emsg = "'not_a_standard_name' is not a valid standard_name"
     with self.assertRaisesRegexp(ValueError, emsg):
         cf_var.standard_name = 'not_a_standard_name'
Пример #2
0
 def test_none_standard_name(self):
     cf_var = CFVariableMixin()
     cf_var.standard_name = None
     self.assertIsNone(cf_var.standard_name)
Пример #3
0
 def test_valid_standard_name(self):
     cf_var = CFVariableMixin()
     cf_var.standard_name = 'air_temperature'
     self.assertEqual(cf_var.standard_name, 'air_temperature')