Reorganized testing

This commit is contained in:
Paulus Schoutsen committed 2014-11-23 13:00:06 -08:00
1 parent ad16c32504
commit bc4b81d525
15 files changed
+259 -244

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
"""
test.test_loader
~~~~~~~~~~~~~~~~~~
Provides tests to verify that we can load components.
"""
# pylint: disable=too-many-public-methods
import unittest
import homeassistant as ha
import homeassistant.loader as loader
import homeassistant.components.http as http
class TestLoader(unittest.TestCase):
""" Test the loader module. """
def setUp(self): # pylint: disable=invalid-name
self.hass = ha.HomeAssistant()
loader.prepare(self.hass)
def tearDown(self): # pylint: disable=invalid-name
""" Stop down stuff we started. """
self.hass._pool.stop()
def test_get_component(self):
""" Test if get_component works. """
self.assertEqual(http, loader.get_component('http'))