def METHOD_NAME(self):
    self.mgr_sync = MgrSync()
    self.mgr_sync.conn = MagicMock()
    self.mgr_sync.log = self.mgr_sync.__init__logger = MagicMock(
        return_value=logger.Logger(3, "tmp.log"))
    self.fake_auth_token = "fake_token"
    self.mgr_sync.auth.token = MagicMock(
        return_value=self.fake_auth_token)
    self.mgr_sync.config.write = MagicMock()
    self.mgr_sync.conn.sync.master.hasMaster = MagicMock(return_value=False)