def getLink(self, gene_list, study=None, study_name=None,  report="full"):

        study = self._getStudyId(study, study_name)
        if not study:
            raise ValueError("Study must be specified")
        if report not in ["full", "oncoprint_html"]:
            raise ValueError("%s is not a valid report" % report)

        url = "/".join(self.url.split("/")[:-1])

        gene_list = ",".join(gene_list)
        return "%s/link.do?cancer_study_id=%s&gene_list=%s&report=%s" %\
            (url, study, gene_list, report)
Test the __init__() method in UserAdminForm
dataset/ETHPy150Open CGATOxford/cgat/CGAT/CBioPortal.py/CBioPortal.getLink--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_forms.py/UserAdminFormTest.test_init