def test_wind_not_applying(self):
     #Setup
     e = WindEvent()
     e.set_speed(2)
     b, trigger = self.__prepare([e], 300)
     #Test
     b.update(trigger)
     #Check
     self.assertEqual(0, b.device.open_counter)
 def test_wind_inverted_direction_not_applying(self):
     #Setup
     e = WindEvent()
     e.set_speed(1)
     e.set_direction(164, 90)
     b, trigger = self.__prepare([e], 300)
     #Test
     b.update(trigger)
     #Check
     self.assertEqual(1, b.device.open_counter)