tests.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:mygene.info 作者: biothings 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号