Two of my favorite python projects collide. I like using plumbum for using python as a replacement for bash for things that aren’t small shell scripts, especially if I want more complex logic. Of course, “more complex logic” means I want to write unit tests. To test one thing at a time, I like to use mock sometimes.

But mocking plumbum.cmd fails for me.

Magic piled on magic sometimes ain’t magic. ☺


Imported from Google+ — content and formatting may not be reliable