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