Пример #1
0
 def test_parse_wx_phenomena_missing(self):
     parser = MetarParserDefault()
     tokens = 'FEW020 SCT150'.split()
     res = parser.parse_wx_phenomena(tokens)
     assert_equals(parser.parsed_metar["wx_phenomena"], [])
     assert_equals(res, ['FEW020', 'SCT150'])
Пример #2
0
 def test_parse_wx_phenomena_with_vert_vis_sky_cond(self):
     parser = MetarParserDefault()
     tokens = 'FG VV002'.split()
     res = parser.parse_wx_phenomena(tokens)
     assert_equals(parser.parsed_metar["wx_phenomena"], ["FG"])
     assert_equals(res, ['VV002'])
Пример #3
0
 def test_parse_wx_phenomena(self):
     parser = MetarParserDefault()
     tokens = '-RA BR BKN015 OVC025'.split()
     res = parser.parse_wx_phenomena(tokens)
     assert_equals(parser.parsed_metar["wx_phenomena"], ['-RA', 'BR'])
     assert_equals(res, ['BKN015', 'OVC025'])
 def test_parse_wx_phenomena_missing(self):
   parser = MetarParserDefault()
   tokens = 'FEW020 SCT150'.split()
   res = parser.parse_wx_phenomena(tokens)
   assert_equals(parser.parsed_metar["wx_phenomena"], [])
   assert_equals(res, ['FEW020', 'SCT150'])
 def test_parse_wx_phenomena_with_vert_vis_sky_cond(self):
   parser = MetarParserDefault()
   tokens = 'FG VV002'.split()
   res = parser.parse_wx_phenomena(tokens)
   assert_equals(parser.parsed_metar["wx_phenomena"], ["FG"])
   assert_equals(res, ['VV002'])
 def test_parse_wx_phenomena(self):
   parser = MetarParserDefault()
   tokens = '-RA BR BKN015 OVC025'.split()
   res = parser.parse_wx_phenomena(tokens)
   assert_equals(parser.parsed_metar["wx_phenomena"], ['-RA', 'BR'])
   assert_equals(res, ['BKN015', 'OVC025'])