Unittests for some of module_common.py (#20812)

* Unittests for some of module_common.py
* Port test_run_command to use pytest-mock

The use of addCleanup(patch.stopall) from the unittest idiom was
conflicting with the pytest-mock idiom of closing all patches
automatically.  Switching to pytest-mock ensures that the patches are
closed and removing the stopall stops the conflict.
This commit is contained in:
Toshio Kuratomi 2017-01-30 13:51:27 -08:00 committed by GitHub
commit 1609afbd12
3 changed files with 127 additions and 8 deletions

View file

@ -5,6 +5,7 @@ nose
passlib
pycrypto
pytest
pytest-mock
python-memcached
pyyaml
redis