def __init__(self, app, ip, path="/", method="get", data={}, headers={}):
        self.app     = app
        self.ip      = ip
        self.path    = "/" + path.strip("/")
        self.method  = method.lower()
        self.data    = dict(data)
        self.headers = dict(headers)
Test the calling of a service.
dataset/ETHPy150Open clips/pattern/pattern/server/__init__.py/HTTPRequest.__init__--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_script.py/TestScriptHelper.test_calling_service_template