Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_fan_with_no_fan(self):
dev = somecomfort.client.Device(None, None)
dev._data = {
'hasFan': False,
'fanData': {
'fanMode': None,
'fanIsRunning': None,
'fanModeOnAllowed': False,
'fanModeAutoAllowed': False,
'fanModeCirculateAllowed': False,
'fanModeFollowScheduleAllowed': False,
}
}
self.assertEqual(None, dev.fan_mode)
# Make sure it's False not falsey
self.assertEqual(False, dev.fan_running)