def list_locations(self):
        params = {'f': 'json'}
        if self.key:
            params['k'] = self.key
        request = requests.get("{0}/getLocations.php".format(self.wpt_url),
                               params=params)
        locations = request.json()['data']
        return sorted(locations.keys())
Return available locations.
dataset/ETHPy150Open StackStorm/st2contrib/packs/webpagetest/actions/lib/webpagetest.py/WebPageTestAction.list_locations