Use set literals in tests (#33669)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-05 02:20:09 +02:00
1 parent d267d674b9
commit 03dd92d51b
9 files changed
+24 -28

No files matched your search

+2 -2
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