1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Collection of random (mainly) test improvements (#33733)

This commit is contained in:
Franck Nijhof
2020-04-06 12:51:48 +02:00
committed by GitHub
parent b31284b855
commit 98a2efcbab
33 changed files with 337 additions and 344 deletions

View File

@@ -28,9 +28,9 @@ class TestFanEntity(unittest.TestCase):
def test_fanentity(self):
"""Test fan entity methods."""
assert "off" == self.fan.state
assert 0 == len(self.fan.speed_list)
assert 0 == self.fan.supported_features
assert self.fan.state == "off"
assert len(self.fan.speed_list) == 0
assert self.fan.supported_features == 0
assert {"speed_list": []} == self.fan.capability_attributes
# Test set_speed not required
self.fan.oscillate(True)