def METHOD_NAME(self):
    self.client.edge = "edge"
    self.client.region = "region"
    self.assertEqual(
        self.client.get_hostname("https://api.twilio.com"),
        "https://api.edge.region.twilio.com",
    )