コード例 #1
0
 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()
コード例 #2
0
 def setUp(self):  # pylint: disable=invalid-name
     self.hass = ha.HomeAssistant()
     mock_http_component(self.hass)
コード例 #3
0
 def test_setup(self):
     """ Test setup method of history. """
     mock_http_component(self.hass)
     self.assertTrue(history.setup(self.hass, {}))