In the previous project I was working on, our fabfile got out of control. While the rest of our project was well-tested, we didn't write a single test for our fabfile. Refactoring was scary, and we weren't confident a fabric command would work how we expected until we ran the command.

I'm starting a new project, and I'd like to make sure our fabfile is well-tested from the beginning. Obey the Testing Goat has a [great article](http://www.obeythetestinggoat.com/unit-testing-fabric-deployment-scripts.html) discussing some possible strategies, yet it has more questions than answers. Using [fabtest](https://pypi.python.org/pypi/fabtest) is a possibility, although it seems to be dead.

Has anyone successfully unit tested their fabfile? If so, how?