Fix up docstring for tests (#5090)

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

No files matched your search

+2 -2
View File
@@ -75,7 +75,7 @@ class TestHttp:
assert req.status_code == 403
def test_access_from_banned_ip_when_ban_is_off(self):
"""Test accessing to server from banned IP when feature is off"""
"""Test accessing to server from banned IP when feature is off."""
hass.http.app[KEY_BANS_ENABLED] = False
for remote_addr in BANNED_IPS:
with patch('homeassistant.components.http.'
@@ -87,7 +87,7 @@ class TestHttp:
assert req.status_code == 200
def test_ip_bans_file_creation(self):
"""Testing if banned IP file created"""
"""Testing if banned IP file created."""
hass.http.app[KEY_BANS_ENABLED] = True
hass.http.app[KEY_LOGIN_THRESHOLD] = 1