Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)