core/tests/components/test_introduction.py

24 lines
662 B
Python
Raw Normal View History

2016-03-09 09:25:50 +00:00
"""The tests for the Introduction component."""
import unittest
from homeassistant.setup import setup_component
from homeassistant.components import introduction
2016-02-14 23:08:23 +00:00
from tests.common import get_test_home_assistant
class TestIntroduction(unittest.TestCase):
2016-03-09 09:25:50 +00:00
"""Test Introduction."""
def setUp(self):
2016-03-09 09:25:50 +00:00
"""Setup things to be run when tests are started."""
2016-02-14 23:08:23 +00:00
self.hass = get_test_home_assistant()
def tearDown(self):
2016-03-09 09:25:50 +00:00
"""Stop down everything that was started."""
self.hass.stop()
def test_setup(self):
2016-03-09 09:25:50 +00:00
"""Test introduction setup."""
self.assertTrue(setup_component(self.hass, introduction.DOMAIN, {}))