add unittest for 'last' query of results in testAPI
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 6 Jun 2016 08:12:36 +0000 (16:12 +0800)
committerSerena Feng <feng.xiaowei@zte.com.cn>
Mon, 6 Jun 2016 08:17:41 +0000 (08:17 +0000)
commit11cd92c210b3ee1099fb2f91e80fbb989d385491
treef23f0f15bb373bb8531f682afac1397bd1adfde4
parent5eb8d87e563503b0cf67746e34f6f6038c567a72
add unittest for 'last' query of results in testAPI

add 'last' related unittest in test_result.py
implement sort()&limit() in fake_pymongo.py
refactor 'sort' model in result_handlers.py

JIRA: FUNCTEST-296
Change-Id: Ib5371f1df67f170e3ba26c6da27a651e34f2b0d6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
result_collection_api/opnfv_testapi/resources/result_handlers.py
result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
result_collection_api/opnfv_testapi/tests/unit/test_result.py