def test_parse_rmk_stn_type_with_garbage(self): parser = MetarParserDefault() res = parser.parse_rmk_stn_type("asdf") assert_equals(parser.parsed_metar["stn_type"], "")
def test_parse_rmk_stn_type(self): parser = MetarParserDefault() res = parser.parse_rmk_stn_type("AO1") assert_equals(parser.parsed_metar["stn_type"], "AO1") res = parser.parse_rmk_stn_type("AO2") assert_equals(parser.parsed_metar["stn_type"], "AO2")