1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Clean up tests (#4209)

This commit is contained in:
Paulus Schoutsen
2016-11-03 21:58:18 -07:00
committed by GitHub
parent 6f68752d1e
commit e88b98f5fa
11 changed files with 42 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
"""The tests for the notify demo platform."""
import unittest
from homeassistant.core import callback
from homeassistant.bootstrap import setup_component
import homeassistant.components.notify as notify
from homeassistant.components.notify import demo
@@ -23,6 +24,7 @@ class TestNotifyDemo(unittest.TestCase):
self.events = []
self.calls = []
@callback
def record_event(event):
"""Record event to send notification."""
self.events.append(event)
@@ -33,6 +35,7 @@ class TestNotifyDemo(unittest.TestCase):
""""Stop down everything that was started."""
self.hass.stop()
@callback
def record_calls(self, *args):
"""Helper for recording calls."""
self.calls.append(args)