Example #1
0
 def test_wind_shear(self):
     """
     Tests converting wind shear code into a spoken string
     """
     for shear, spoken in (
         ("", "Wind shear unknown"),
         ("WS020/07040KT", "Wind shear 2000ft from zero seven zero at 40kt"),
         ("WS100/20020KT", "Wind shear 10000ft from two zero zero at 20kt"),
     ):
         self.assertEqual(speech.wind_shear(shear), spoken)
Example #2
0
 def test_wind_shear(self):
     """
     Tests converting wind shear code into a spoken string
     """
     for shear, spoken in (
         ('', 'Wind shear unknown'),
         ('WS020/07040KT', 'Wind shear 2000ft from zero seven zero at 40kt'),
         ('WS100/20020KT', 'Wind shear 10000ft from two zero zero at 20kt')
     ):
         self.assertEqual(speech.wind_shear(shear), spoken)