def test_setup(self): """ Test setup method. """ try: hass = get_test_home_assistant() mock_http_component(hass) self.assertTrue(logbook.setup(hass, {})) finally: hass.stop()
def test_setup(self): """ Test setup method. """ try: hass = get_test_home_assistant() http.setup(hass, { http.DOMAIN: {http.CONF_SERVER_PORT: SERVER_PORT}}) self.assertTrue(logbook.setup(hass, {})) finally: hass.stop()
def test_setup(self): """ Test setup method. """ try: hass = get_test_home_assistant() http.setup(hass, {http.DOMAIN: { http.CONF_SERVER_PORT: SERVER_PORT }}) self.assertTrue(logbook.setup(hass, {})) finally: hass.stop()
def setUp(self): """Setup things to be run when tests are started.""" self.hass = get_test_home_assistant() mock_http_component(self.hass) self.assertTrue(logbook.setup(self.hass, {}))
def setUp(self): """ Test setup method. """ self.hass = get_test_home_assistant() mock_http_component(self.hass) self.assertTrue(logbook.setup(self.hass, {}))
def setUp(self): """ Test setup method. """ self.hass = ha.HomeAssistant() mock_http_component(self.hass) self.assertTrue(logbook.setup(self.hass, {}))