def test_defaultPort(self):
        """
        L{SSHCommandClientEndpoint} uses the default port number for SSH when
        the C{port} argument is not specified.
        """
        endpoint = SSHCommandClientEndpoint.newConnection(
            self.reactor, b"dummy command", b"dummy user", self.hostname)
        self.assertEqual(22, endpoint._creator.port)

        L{SSHCommandClientEndpoint} uses the default port number for SSH when
        the C{port} argument is not specified.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_endpoints.py