From 2ecbcac2b14dfcc9b8ebcb97f5ed18791c6f2859 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 23 Sep 2016 10:28:28 +0200 Subject: [PATCH] Fix PEP257 issues (#3491) * Align test name with platform * Fix PEP257 issues --- ..._content_sensor.py => test_imap_email_content.py} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename tests/components/sensor/{test_email_content_sensor.py => test_imap_email_content.py} (96%) diff --git a/tests/components/sensor/test_email_content_sensor.py b/tests/components/sensor/test_imap_email_content.py similarity index 96% rename from tests/components/sensor/test_email_content_sensor.py rename to tests/components/sensor/test_imap_email_content.py index 424e09ff055..a0a43497e79 100644 --- a/tests/components/sensor/test_email_content_sensor.py +++ b/tests/components/sensor/test_imap_email_content.py @@ -1,4 +1,4 @@ -"""The tests for the Command line sensor platform.""" +"""The tests for the IMAP email content sensor platform.""" import unittest import email import datetime @@ -15,14 +15,14 @@ from tests.common import get_test_home_assistant class FakeEMailReader: - """A test class for sending test emails""" + """A test class for sending test emails.""" def __init__(self, messages): - """Setup the fake email reader""" + """Setup the fake email reader.""" self._messages = messages def connect(self): - """Always connected.""" + """Stay always Connected.""" return True def read_next(self): @@ -33,7 +33,7 @@ class FakeEMailReader: class EmailContentSensor(unittest.TestCase): - """Test the Command line sensor.""" + """Test the IMAP email content sensor.""" def setUp(self): """Setup things to be run when tests are started.""" @@ -93,7 +93,7 @@ class EmailContentSensor(unittest.TestCase): self.assertEqual("Test Message", sensor.state) def test_multi_part_only_html(self): - """Test multi part emails with only html.""" + """Test multi part emails with only HTML.""" msg = MIMEMultipart('alternative') msg['Subject'] = "Link" msg['From'] = "sender@test.com"