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
@@ -7,15 +7,15 @@ from homeassistant.helpers import location
|
||||
|
||||
|
||||
class TestHelpersLocation(unittest.TestCase):
|
||||
"""Setup the tests."""
|
||||
"""Set up the tests."""
|
||||
|
||||
def test_has_location_with_invalid_states(self):
|
||||
"""Setup the tests."""
|
||||
"""Set up the tests."""
|
||||
for state in (None, 1, "hello", object):
|
||||
self.assertFalse(location.has_location(state))
|
||||
|
||||
def test_has_location_with_states_with_invalid_locations(self):
|
||||
"""Setup the tests."""
|
||||
"""Set up the tests."""
|
||||
state = State('hello.world', 'invalid', {
|
||||
ATTR_LATITUDE: 'no number',
|
||||
ATTR_LONGITUDE: 123.12
|
||||
@@ -23,7 +23,7 @@ class TestHelpersLocation(unittest.TestCase):
|
||||
self.assertFalse(location.has_location(state))
|
||||
|
||||
def test_has_location_with_states_with_valid_location(self):
|
||||
"""Setup the tests."""
|
||||
"""Set up the tests."""
|
||||
state = State('hello.world', 'invalid', {
|
||||
ATTR_LATITUDE: 123.12,
|
||||
ATTR_LONGITUDE: 123.12
|
||||
@@ -31,7 +31,7 @@ class TestHelpersLocation(unittest.TestCase):
|
||||
self.assertTrue(location.has_location(state))
|
||||
|
||||
def test_closest_with_no_states_with_location(self):
|
||||
"""Setup the tests."""
|
||||
"""Set up the tests."""
|
||||
state = State('light.test', 'on')
|
||||
state2 = State('light.test', 'on', {
|
||||
ATTR_LATITUDE: 'invalid',
|
||||
|
||||
Reference in new issue
Block a user