def test_other(self): """ Tests converting wxcodes into a spoken string """ for code, spoken in ( ([], ''), (['R03/03002V03'], 'R03/03002V03'), (['+RATS', 'VCFC'], 'Heavy Rain Thunderstorm. Funnel Cloud in the Vicinity'), (['-GR', 'FZFG', 'BCBLSN'], 'Light Hail. Freezing Fog. Patchy Blowing Snow'), ): self.assertEqual(speech.other(code), spoken)
def test_other(self): """ Tests converting wxcodes into a spoken string """ for code, spoken in ( ([], ""), (["R03/03002V03"], "R03/03002V03"), ( ["+RATS", "VCFC"], "Heavy Rain Thunderstorm. Funnel Cloud in the Vicinity", ), ( ["-GR", "FZFG", "BCBLSN"], "Light Hail. Freezing Fog. Patchy Blowing Snow", ), ): self.assertEqual(speech.other(code), spoken)