For what it's worth, I'm now using Michael Foord's mock library to test plugins and it works like a charm.
You can see an example here:
http://bitbucket.org/guillermooo/sublim ... tip/tests/I'm pretty new to testing, so I hope I'm not doing anything too wrong!