Remove extra quotes from docstrings (#14431)

This commit is contained in:
Ville Skyttä 2018-05-13 11:06:15 +02:00 committed by Martin Hjelmare
parent ea2c073612
commit 843789528e
21 changed files with 88 additions and 88 deletions

View file

@ -47,17 +47,17 @@ class TestMqttStateStream(object):
assert self.add_statestream() is False
def test_setup_succeeds_without_attributes(self):
""""Test the success of the setup with a valid base_topic."""
"""Test the success of the setup with a valid base_topic."""
assert self.add_statestream(base_topic='pub')
def test_setup_succeeds_with_attributes(self):
""""Test setup with a valid base_topic and publish_attributes."""
"""Test setup with a valid base_topic and publish_attributes."""
assert self.add_statestream(base_topic='pub', publish_attributes=True)
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_sends_message(self, mock_utcnow, mock_pub):
""""Test the sending of a new message if event changed."""
"""Test the sending of a new message if event changed."""
e_id = 'fake.entity'
base_topic = 'pub'
@ -84,7 +84,7 @@ class TestMqttStateStream(object):
self,
mock_utcnow,
mock_pub):
""""Test the sending of a message and timestamps if event changed."""
"""Test the sending of a message and timestamps if event changed."""
e_id = 'another.entity'
base_topic = 'pub'
@ -118,7 +118,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_attr_sends_message(self, mock_utcnow, mock_pub):
""""Test the sending of a new message if attribute changed."""
"""Test the sending of a new message if attribute changed."""
e_id = 'fake.entity'
base_topic = 'pub'
@ -160,7 +160,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_include_domain(self, mock_utcnow, mock_pub):
""""Test that filtering on included domain works as expected."""
"""Test that filtering on included domain works as expected."""
base_topic = 'pub'
incl = {
@ -198,7 +198,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_include_entity(self, mock_utcnow, mock_pub):
""""Test that filtering on included entity works as expected."""
"""Test that filtering on included entity works as expected."""
base_topic = 'pub'
incl = {
@ -236,7 +236,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_exclude_domain(self, mock_utcnow, mock_pub):
""""Test that filtering on excluded domain works as expected."""
"""Test that filtering on excluded domain works as expected."""
base_topic = 'pub'
incl = {}
@ -274,7 +274,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.components.mqtt.async_publish')
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_exclude_entity(self, mock_utcnow, mock_pub):
""""Test that filtering on excluded entity works as expected."""
"""Test that filtering on excluded entity works as expected."""
base_topic = 'pub'
incl = {}
@ -313,7 +313,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_exclude_domain_include_entity(
self, mock_utcnow, mock_pub):
""""Test filtering with excluded domain and included entity."""
"""Test filtering with excluded domain and included entity."""
base_topic = 'pub'
incl = {
@ -354,7 +354,7 @@ class TestMqttStateStream(object):
@patch('homeassistant.core.dt_util.utcnow')
def test_state_changed_event_include_domain_exclude_entity(
self, mock_utcnow, mock_pub):
""""Test filtering with included domain and excluded entity."""
"""Test filtering with included domain and excluded entity."""
base_topic = 'pub'
incl = {