??????????????
????????????Unit test??????????????????????д????????????д??????????????????е????????????????????????????????????????????mock?????????
????Python???????????????????д????????????????????????????tox?????У?????OpenStack?????????run_tests.sh??????????С?
???????????
???????Python?????apt-get install python-dev
???????pip?????apt-get install python-pip
???????virtualenv?????pip install virtualenv
???????tox?????pip install tox
???????postgres?????apt-get install libpq-dev
???????xml??xslt?????apt-get install libxml2-dev libxslt1-dev
???????ffi?????apt-get install libffi-dev
???????run_tests.sh
??????manila????????
????git clonehttps://github.com/openstack/manila.git
????cd manila/
????./run_tests.sh
???????tox
????tox -epy27 --
???????testr
????testr run
???????UT??????
????./run_tests.sh --coverage
????????UT???????????????????????????HTML????????????????????????google-chrome covhtml/index.html??
????Troubleshoot
????????from oslo.config import cfg??ImportError: No module named config
????????????????oslo??汾??requirements.txt??汾?????????????????μ?oslo????????????汾??
????oslo.config>=1.6.0??<=1.7.0