From a230d00ed02ac3044b5bd8c840b8ff8edd167ffc Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sat, 30 Jan 2016 22:50:56 -0500 Subject: [PATCH] Added test for Introduction component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test may seem useless, but it is good to ensure that default components don’t ever crash HASS. --- tests/components/test_introduction.py | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/components/test_introduction.py diff --git a/tests/components/test_introduction.py b/tests/components/test_introduction.py new file mode 100644 index 00000000000..42c16081d1e --- /dev/null +++ b/tests/components/test_introduction.py @@ -0,0 +1,28 @@ +""" +tests.components.introduction +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Test introduction. + +This test is primarily to ensure that default components don't crash HASS. +""" + +import unittest + +import homeassistant.core as ha +from homeassistant.components import introduction + + +class TestIntroduction(unittest.TestCase): + """ Test Introduction. """ + + def setUp(self): + self.hass = ha.HomeAssistant() + + def tearDown(self): + """ Stop down stuff we started. """ + self.hass.stop() + + def test_setup(self): + """ Test Introduction setup """ + self.assertTrue(introduction.setup(self.hass, {}))