Test helpers for Twisted.