def test_decode_rvr_with_variation(self):
   val = "R25R/2000V4000FT"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "variable, from 2,000 to 4,000 feet " \
     "(runway 25R)")
 def test_decode_rvr_with_variation(self):
     val = "R25R/2000V4000FT"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "variable, from 2,000 to 4,000 feet " \
       "(runway 25R)")
 def test_decode_rvr_with_no_change(self):
     val = "R20/5500FT/N"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "5,500 feet, no change (runway 20)")
 def test_decode_rvr_with_upward_trend(self):
     val = "R02C/1500FT/U"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "1,500 feet, trending upward (runway 02C)")
 def test_decode_rvr_with_downward_trend(self):
     val = "R36/4000FT/D"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "4,000 feet, trending downward (runway 36)")
 def test_decode_rvr_with_more_than_modifier(self):
     val = "R36/P6000FT"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "more than 6,000 feet (runway 36)")
 def test_decode_rvr_with_less_than_modifier(self):
     val = "R10/M4000FT"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "less than 4,000 feet (runway 10)")
 def test_decode_rvr_with_parallel_runways(self):
     val = "R32C/3500FT"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "3,500 feet (runway 32C)")
 def test_decode_rvr(self):
     val = "R06/2000FT"
     decoder = MetarDecoderDefault()
     decoder.decode_rvr(val)
     res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
     assert_equals(res, "2,000 feet (runway 06)")
 def test_decode_rvr_with_no_change(self):
   val = "R20/5500FT/N"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "5,500 feet, no change (runway 20)")
 def test_decode_rvr_with_upward_trend(self):
   val = "R02C/1500FT/U"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "1,500 feet, trending upward (runway 02C)")
 def test_decode_rvr_with_downward_trend(self):
   val = "R36/4000FT/D"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "4,000 feet, trending downward (runway 36)")
 def test_decode_rvr_with_more_than_modifier(self):
   val = "R36/P6000FT"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "more than 6,000 feet (runway 36)")
 def test_decode_rvr_with_less_than_modifier(self):
   val = "R10/M4000FT"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "less than 4,000 feet (runway 10)")
 def test_decode_rvr_with_parallel_runways(self):
   val = "R32C/3500FT"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "3,500 feet (runway 32C)")
 def test_decode_rvr(self):
   val = "R06/2000FT"
   decoder = MetarDecoderDefault()
   decoder.decode_rvr(val)
   res = decoder.decoded_metar["rvr"][self.DECODED_KEY]
   assert_equals(res, "2,000 feet (runway 06)")