

def _url(data={
    
}):
    'Helper method to generate URLs.'
    data = '&'.join(['{}={}'.format(name, value) for (name, value) in data.items()])
    return '{}{}locative?{}'.format(HTTP_BASE_URL, const.URL_API, data)

dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_locative.py _url/original