2016-03-09 10:25:50 +01:00
|
|
|
"""The tests for the Introduction component."""
|
2016-01-30 22:50:56 -05:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
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):
|
2016-03-09 10:25:50 +01:00
|
|
|
"""Setup 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."""
|
2016-01-30 22:50:56 -05:00
|
|
|
self.assertTrue(introduction.setup(self.hass, {}))
|