示例#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 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()
示例#5
0
 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, {}))
示例#6
0
 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, {}))
示例#8
0
 def setUp(self):
     """ Test setup method. """
     self.hass = ha.HomeAssistant()
     mock_http_component(self.hass)
     self.assertTrue(logbook.setup(self.hass, {}))