def METHOD_NAME(self):
    """GetConnections iterating models for source"""
    for model in nest.node_models:
        nest.ResetKernel()
        alpha = nest.Create("iaf_psc_alpha")
        try:
            other = nest.Create(model)
            nest.Connect(other, alpha)
        except nest.kernel.NESTError:
            # If we can't create a node with this model, or connect
            # to a node of this model, we ignore it.
            continue
        for get_conn_args in [{"source": other, "target": alpha}, {"source": other}, {"target": alpha}]:
            conns = nest.GetConnections(**get_conn_args)
            self.assertEqual(
                len(conns),
                1,
                "Failed to get connection with source model {} (specifying {})".format(
                    model, ", ".join(get_conn_args.keys())
                ),
            )