????????
????pytest????????????????Python?????????????????д??????????
??????????????????????????
????l ??黯parametrizeable??????2.3???????????
????l ??????????????????????
????l ???????????????
????l Skip??xfail????????????????????????2.4?????
????l ???xdist??????????????CPU
????l ????????????????????
????l ????????Python???????
????Home Page: http://pytest.org
???????
????>pip install -U pytest   # ???pip???
????>py.test --version        # ??pytest?汾
????This is pytest version 2.7.2?? imported from C:Python27libsite-packagespytest.pyc
???????????
???????????????????????????????????в????
????#coding=utf-8
????# ????
????def func(x):
????return x + 1
????# ????????
????def test_answer():
????assert func(3) == 5
?????л??????????????????????“py.test”???????в????
????>py.test
??????н?????????

????===================================================================
????????????????д????????????????
????#coding=utf-8
????class TestClass:
????def test_one(self):
????x = "this"
????assert "h" in x
????def test_two(self):
????x = "hello"
????assert x == "hi"
???????в????
????>py.test -q test_class.py

????-q  ?quiet????????????????????????????????????????????? ??????????????????????????????????????Щpytest??汾?????