def test_decoded_wind_variation_missing(self):
     val = ""
     decoder = MetarDecoderDefault()
     decoder.decode_wind_dir_variation(val)
     # The decoder should handle an empty wind variation, and the keys
     # should exist in the decoded metar with empty values.
     res = decoder.decoded_metar["wind_dir_variation"][self.DECODED_KEY]
     assert_equals(res, "")
 def test_decoded_wind_variation_missing(self):
   val = ""
   decoder = MetarDecoderDefault()
   decoder.decode_wind_dir_variation(val)
   # The decoder should handle an empty wind variation, and the keys
   # should exist in the decoded metar with empty values.
   res = decoder.decoded_metar["wind_dir_variation"][self.DECODED_KEY]
   assert_equals(res, "")
 def test_decode_wind_variation(self):
     val = "180V250"
     decoder = MetarDecoderDefault()
     decoder.decode_wind_dir_variation(val)
     res = decoder.decoded_metar["wind_dir_variation"][self.DECODED_KEY]
     assert_equals(res, "variable, from 180 degrees to 250 degrees")
 def test_decode_wind_variation(self):
   val = "180V250"
   decoder = MetarDecoderDefault()
   decoder.decode_wind_dir_variation(val)
   res = decoder.decoded_metar["wind_dir_variation"][self.DECODED_KEY]
   assert_equals(res, "variable, from 180 degrees to 250 degrees")