def set_proxy(self, value):
        if urlparse.URI_RE_STRICT.search(value) is None:
            self._proxy = None
            raise InvalidURLFormatException("Proxy URL Passed is invalid")
        else:
            self._proxy = value
Return a Home Assistant object pointing at test config dir.
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py/HTTPRequest.set_proxy--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/get_test_home_assistant