add unittest for 'last' query of results in testAPI 03/15203/2
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)
commit34db68599c76b124c57d5ebd4d749e4829a57bea
tree3c0afadff523dab4e47f3a4fc5ba20eda32928fd
parentcdf0e83b6697d2ff75ba30b567ead5bcfea0fa25
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>
utils/test/result_collection_api/opnfv_testapi/resources/result_handlers.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_result.py