def test_allASCII(self):
        """
        The string representation of L{HostnameEndpoint} includes the host and
        port passed to the constructor.
        """
        endpoint = endpoints.HostnameEndpoint(
            deterministicResolvingReactor(Clock(), []),
            'example.com', 80,
        )

        rep = repr(endpoint)

        self.assertEqual("<HostnameEndpoint example.com:80>", rep)
        self.assertIs(str, type(rep))

        The string representation of L{HostnameEndpoint} includes the host and
        port passed to the constructor.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_endpoints.py