def METHOD_NAME(self, mock_db):
    flowalerts = FlowAlerts(self.output_queue, mock_db, self.dummy_termination_event)
    # override the self.print function to avoid broken pipes
    flowalerts.print = do_nothing
    return flowalerts