def gene_info(request, gene_id): gene = get_gene(gene_id, request.user) return create_json_response({'genesById': {gene_id: gene}})
def test_get_gene(self): json = get_gene(GENE_ID, user=None) self.assertSetEqual(set(json.keys()), GENE_DETAIL_FIELDS)