Use set literals in tests (#33669)

This commit is contained in:
Franck Nijhof 2020-04-05 02:20:09 +02:00 committed by GitHub
parent d267d674b9
commit 03dd92d51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 28 deletions

View file

@ -295,7 +295,7 @@ class TestComponentsGroup(unittest.TestCase):
group_state = self.hass.states.get(f"{group.DOMAIN}.second_group")
assert STATE_ON == group_state.state
assert set((test_group.entity_id, "light.bowl")) == set(
assert {test_group.entity_id, "light.bowl"} == set(
group_state.attributes["entity_id"]
)
assert group_state.attributes.get(group.ATTR_AUTO) is None
@ -304,7 +304,7 @@ class TestComponentsGroup(unittest.TestCase):
group_state = self.hass.states.get(f"{group.DOMAIN}.test_group")
assert STATE_UNKNOWN == group_state.state
assert set(("sensor.happy", "hello.world")) == set(
assert {"sensor.happy", "hello.world"} == set(
group_state.attributes["entity_id"]
)
assert group_state.attributes.get(group.ATTR_AUTO) is None