def METHOD_NAME(self):
    def db_setup():
        raise RuntimeError("oh noes")
    self.db.setup = db_setup
    yield self.master.startService()
    self.assertTrue(self.reactor.stop_called)
    self.assertEqual(len(self.flushLoggedErrors(RuntimeError)), 1)
    self.assertLogged("BuildMaster startup failed")