def setUp(self):
        self.hass = get_test_home_assistant()
        mock_http_component(self.hass)
        self.assertTrue(logbook.setup(self.hass, {}))
Parse JavaScript variables in the source page
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_logbook.py/TestComponentHistory.setUp--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API._parse_src_js_var