2016-03-09 09:25:50 +00:00
|
|
|
"""The tests for the Introduction component."""
|
2016-01-31 03:50:56 +00:00
|
|
|
import unittest
|
|
|
|
|
2017-03-05 09:41:54 +00:00
|
|
|
from homeassistant.setup import setup_component
|
2016-01-31 03:50:56 +00:00
|
|
|
from homeassistant.components import introduction
|
|
|
|
|
2016-02-14 23:08:23 +00:00
|
|
|
from tests.common import get_test_home_assistant
|
|
|
|
|
2016-01-31 03:50:56 +00:00
|
|
|
|
|
|
|
class TestIntroduction(unittest.TestCase):
|
2016-03-09 09:25:50 +00:00
|
|
|
"""Test Introduction."""
|
2016-01-31 03:50:56 +00:00
|
|
|
|
|
|
|
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()
|
2016-01-31 03:50:56 +00:00
|
|
|
|
|
|
|
def tearDown(self):
|
2016-03-09 09:25:50 +00:00
|
|
|
"""Stop down everything that was started."""
|
2016-01-31 03:50:56 +00:00
|
|
|
self.hass.stop()
|
|
|
|
|
|
|
|
def test_setup(self):
|
2016-03-09 09:25:50 +00:00
|
|
|
"""Test introduction setup."""
|
2016-09-25 21:15:21 +00:00
|
|
|
self.assertTrue(setup_component(self.hass, introduction.DOMAIN, {}))
|