python unittest:
综述:
http://www.oschina.net/question/12_27127#TESTCONDS
官方:
https://docs.python.org/2.7/library/unittest.html
python with语句:
https://www.ibm.com/developerworks/cn/opensource/os-cn-pythonwith/
with 上下文管理器的使用实例:
https://docs.python.org/release/2.6/whatsnew/2.6.html#module-contextlib