Grammar and spelling fixes (#16065)
This commit is contained in:
1 parent
9e1fa7ef42
commit
dbd0763f83
244 files changed
+453
-453
No files matched your search
@@ -19,7 +19,7 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
def setUp(self):
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
@@ -28,7 +28,7 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
self.hass.stop()
|
||||
|
||||
def test_setup_group_with_mixed_groupable_states(self):
|
||||
"""Try to setup a group with mixed groupable states."""
|
||||
"""Try to set up a group with mixed groupable states."""
|
||||
self.hass.states.set('light.Bowl', STATE_ON)
|
||||
self.hass.states.set('device_tracker.Paulus', STATE_HOME)
|
||||
group.Group.create_group(
|
||||
@@ -41,7 +41,7 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
group.ENTITY_ID_FORMAT.format('person_and_light')).state)
|
||||
|
||||
def test_setup_group_with_a_non_existing_state(self):
|
||||
"""Try to setup a group with a non existing state."""
|
||||
"""Try to set up a group with a non existing state."""
|
||||
self.hass.states.set('light.Bowl', STATE_ON)
|
||||
|
||||
grp = group.Group.create_group(
|
||||
@@ -62,7 +62,7 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
self.assertEqual(STATE_UNKNOWN, grp.state)
|
||||
|
||||
def test_setup_empty_group(self):
|
||||
"""Try to setup an empty group."""
|
||||
"""Try to set up an empty group."""
|
||||
grp = group.Group.create_group(self.hass, 'nothing', [])
|
||||
|
||||
self.assertEqual(STATE_UNKNOWN, grp.state)
|
||||
|
||||
Reference in new issue
Block a user