Fix up docstring for tests (#5090)

This commit is contained in:
Johann Kellerman 2016-12-28 20:04:59 +02:00 committed by GitHub
parent 98efbbc129
commit f0b1874d2d
19 changed files with 61 additions and 59 deletions

View file

@ -1,3 +1,4 @@
"""Tests for the Home Assistant Websocket API."""
import asyncio
from unittest.mock import patch
@ -213,7 +214,7 @@ def test_subscribe_unsubscribe_events(hass, websocket_client):
@asyncio.coroutine
def test_get_states(hass, websocket_client):
""" Test get_states command."""
"""Test get_states command."""
hass.states.async_set('greeting.hello', 'world')
hass.states.async_set('greeting.bye', 'universe')
@ -239,7 +240,7 @@ def test_get_states(hass, websocket_client):
@asyncio.coroutine
def test_get_services(hass, websocket_client):
""" Test get_services command."""
"""Test get_services command."""
websocket_client.send_json({
'id': 5,
'type': wapi.TYPE_GET_SERVICES,
@ -254,7 +255,7 @@ def test_get_services(hass, websocket_client):
@asyncio.coroutine
def test_get_config(hass, websocket_client):
""" Test get_config command."""
"""Test get_config command."""
websocket_client.send_json({
'id': 5,
'type': wapi.TYPE_GET_CONFIG,
@ -269,7 +270,7 @@ def test_get_config(hass, websocket_client):
@asyncio.coroutine
def test_get_panels(hass, websocket_client):
""" Test get_panels command."""
"""Test get_panels command."""
frontend.register_built_in_panel(hass, 'map', 'Map',
'mdi:account-location')
@ -287,7 +288,7 @@ def test_get_panels(hass, websocket_client):
@asyncio.coroutine
def test_ping(websocket_client):
""" Test get_panels command."""
"""Test get_panels command."""
websocket_client.send_json({
'id': 5,
'type': wapi.TYPE_PING,