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

@ -6,6 +6,7 @@ from unittest.mock import call, patch
from datetime import datetime, timedelta
import os
from homeassistant.core import callback
from homeassistant.bootstrap import setup_component
from homeassistant.loader import get_component
import homeassistant.util.dt as dt_util
@ -312,6 +313,7 @@ class TestComponentsDeviceTracker(unittest.TestCase):
TEST_PLATFORM))
test_events = []
@callback
def listener(event):
"""Helper method that will verify our event got called."""
test_events.append(event)