def test_parse_metar_header_without_metar_header(self): parser = MetarParserDefault() tokens = 'KHIO 290653Z'.split() res = parser.parse_metar_header(tokens) assert_equals(res, ['KHIO', '290653Z'])
def test_parse_metar_header_without_metar_header(self): parser = MetarParserDefault() tokens = 'KHIO 290653Z'.split() res = parser.parse_metar_header(tokens) assert_equals(res, ['KHIO', '290653Z'])
def test_parse_metar_header_with_metar_header(self): parser = MetarParserDefault() tokens = 'METAR KHIO'.split() res = parser.parse_metar_header(tokens) assert_equals(res[0], 'KHIO')
def test_parse_metar_header_with_metar_header(self): parser = MetarParserDefault() tokens = 'METAR KHIO'.split() res = parser.parse_metar_header(tokens) assert_equals(res[0], 'KHIO')