The test_publish module is accessible via the buildutils.test module.
See the source for more information.