コード例 #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
ファイル: test_speech.py プロジェクト: leeon1982/avwx-engine
 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)