Skip to content

Commit

Permalink
(Issue #3) Multiple locations in A-clause should be separated with wh…
Browse files Browse the repository at this point in the history
…itespace
  • Loading branch information
slavak committed Jul 10, 2021
1 parent 6d6ac69 commit afaac95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
upper_limit = int3
area_of_effect = ~r"(?P<lat>[0-9]{4}[NS])(?P<long>[0-9]{5}[EW])(?P<radius>[0-9]{3})"
a_clause = "A)" _ location_icao ("/" location_icao)*
a_clause = "A)" _ location_icao (" " location_icao)*
location_icao = icao_id
b_clause = "B)" _ datetime
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/A0623_91.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(A0623/91 NOTAMN
Q) EGXX/QRDCA/IV/NBO/W/000/400/5510N00520W050
A) EGTT/EGPX B) 9104030730 C) 9104281500
A) EGTT EGPX B) 9104030730 C) 9104281500
D) APR 03 07 12 21 24 AND 28 0730 TO 1500
E) DANGER AREA DXX IS ACTIVE
F) GND G) 12 200 m (40 000 ft) MSL.)
2 changes: 1 addition & 1 deletion tests/test_notam.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_parsed_fields(self):
n = notam.Notam.from_str(notam_text)
for (field, value) in expected.items():
with self.subTest(msg='Field "{}" of NOTAM "{}"'.format(field, notam_to_test)):
self.assertEquals(getattr(n, field), value)
self.assertEqual(getattr(n, field), value)


if __name__ == '__main__':
Expand Down

0 comments on commit afaac95

Please sign in to comment.