def METHOD_NAME(self):
    self.client.region = "region"
    self.client.edge = "edge"
    self.assertEqual(
        self.client.get_hostname(
            "https://api.twilio.com/path/to/something.json?foo=12.34"
        ),
        "https://api.edge.region.twilio.com/path/to/something.json?foo=12.34",
    )