Part of bzrlib
See doc/developers/testing.txt for more explanations. This module should be importable even if testtools aren't available.