def mock_http_component(hass):
    hass.http = MockHTTP()
    hass.config.components.append('http')
Mock the HTTP component.
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/mock_http_component