def METHOD_NAME(self):
    self.assertEqual(
        [
            {"host": "elastic.co", "port": 42, "use_ssl": True},
            {
                "host": "elastic.co",
                "http_auth": "user:secret",
                "use_ssl": True,
                "port": 443,
                "url_prefix": "/prefix",
            },
        ],
        _normalize_hosts(
            ["https://elastic.co:42", "https://user:secret@elastic.co/prefix"]
        ),
    )