使用pytest框架时注意: 1. .py测试文件必须以test_开头(或者以_test结尾); 2.测试类必须以Test开头,并且不能有int方法; 3.测试方法必须以test_开头; 4.断言必须用assert。