Subversion's test suite is written in Python. Easy enough one would think, but, not so trivial at all and so I have resorted to taking combat lessons from the vorpal bunny:
... as always, it's just a matter of attacking the problem from the right direction.