2016-03-09 10:25:50 +01:00
|
|
|
"""The tests for the Introduction component."""
|
2016-01-30 22:50:56 -05:00
|
|
|
import unittest
|
|
|
|
|
2017-03-05 01:41:54 -08:00
|
|
|
from homeassistant.setup import setup_component
|
2016-01-30 22:50:56 -05:00
|
|
|
from homeassistant.components import introduction
|
|
|
|
|
2016-02-14 15:08:23 -08:00
|
|
|
from tests.common import get_test_home_assistant
|
|
|
|
|
2016-01-30 22:50:56 -05:00
|
|
|
|
|
|
|
class TestIntroduction(unittest.TestCase):
|
2016-03-09 10:25:50 +01:00
|
|
|
"""Test Introduction."""
|
2016-01-30 22:50:56 -05:00
|
|
|
|
|
|
|
def setUp(self):
|
2018-08-19 22:29:08 +02:00
|
|
|
"""Set up things to be run when tests are started."""
|
2016-02-14 15:08:23 -08:00
|
|
|
self.hass = get_test_home_assistant()
|
2016-01-30 22:50:56 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
2016-03-09 10:25:50 +01:00
|
|
|
"""Stop down everything that was started."""
|
2016-01-30 22:50:56 -05:00
|
|
|
self.hass.stop()
|
|
|
|
|
|
|
|
def test_setup(self):
|
2016-03-09 10:25:50 +01:00
|
|
|
"""Test introduction setup."""
|
2018-10-24 12:10:05 +02:00
|
|
|
assert setup_component(self.hass, introduction.DOMAIN, {})
|