Replace pre-commit test patch decorators with setUp/tearDown patching.
Replace pre-commit test patch decorators with setUp/tearDown patching.

alexcouper/captainhook,pczerkas/captainhook,Friz-zy/captainhook