def test_symbolnamespecies_order(self):
res = self.json_ok(self.get_ok(self.api + "/query?q=cdk2&species=human,mouse,rat"))
hits = res["hits"]
# first is 1017, it's human and cdk2 is a symbol
eq_(hits[0]["_id"],"1017")
# second is 12566, mouse
eq_(hits[1]["_id"],"12566")
# third is 362817, rat
eq_(hits[2]["_id"],"362817")
评论列表
文章目录