def METHOD_NAME(self):
    class Transport(pyamqp.Transport):
        Connection = MockConnection
    c = Connection(port=None, transport=Transport).connect()
    assert c['host'] == f'127.0.0.1:{Transport.default_port}'