def test_parse(self): """ Tests returned structs from the parse function """ for report in ( "EWR UA /OV SBJ090/010/TM 2108/FL060/TP B738/TB MOD", "SMQ UA /OV BWZ/TM 0050/FL280/TP A320/TB MOD", ): data = pirep.parse(report) self.assertIsInstance(data, structs.PirepData) self.assertEqual(data.raw, report)
def _post_update(self): self.data = [] for report in self.raw: self.data.append(pirep.parse(report))
def _post_update(self): self.data = [] for report in self.raw_reports: self.data.append(pirep.parse(report))