I want to add some more flexibility to the tools for injecting events into the database, and I don't want to clutter up HomeserverTestCase with them, so let's factor them out to a new file.
I got fed up with always adding '@unittest.DEBUG' every time I needed to debug a test.