Exemple #1
0
 def test_calm(self):
     self.assertEqual(0, knots_to_beaufort(0.5))
Exemple #2
0
 def test_violent_storm(self):
     self.assertEqual(11, knots_to_beaufort(56.))
Exemple #3
0
 def test_huricane(self):
     self.assertEqual(12, knots_to_beaufort(64.))
Exemple #4
0
 def test_severe_gale(self):
     self.assertEqual(9, knots_to_beaufort(41.))
Exemple #5
0
 def test_storm(self):
     self.assertEqual(10, knots_to_beaufort(48.))
Exemple #6
0
 def test_near_gale(self):
     self.assertEqual(7, knots_to_beaufort(28.))
Exemple #7
0
 def test_gale(self):
     self.assertEqual(8, knots_to_beaufort(34.))
Exemple #8
0
 def test_fresh_breeze(self):
     self.assertEqual(5, knots_to_beaufort(17.))
Exemple #9
0
 def test_strong_breeze(self):
     self.assertEqual(6, knots_to_beaufort(22.))
Exemple #10
0
 def test_moderate_breeze(self):
     self.assertEqual(4, knots_to_beaufort(11.))
Exemple #11
0
 def test_gentle_breeze(self):
     self.assertEqual(3, knots_to_beaufort(7.))
Exemple #12
0
 def test_light_breeze(self):
     self.assertEqual(2, knots_to_beaufort(4.))
Exemple #13
0
 def test_light_air_mid(self):
     self.assertEqual(1, knots_to_beaufort(2.2))
Exemple #14
0
 def test_light_air_lowest(self):
     self.assertEqual(1, knots_to_beaufort(1.0))