'Set up a temporary directory for the queue, attempt managers with the
noisy flag on and off, message files for use with each attempt manager,
and a reactor.  Also, register to be notified when log messages are
generated.'

def setUp(self):

    self.tmpdir = self.mktemp()
    os.mkdir(self.tmpdir)
    self.reactor = MemoryReactorClock()
    self.eventLog = None
    log.addObserver(self._logObserver)
    self.noisyAttemptMgr = _AttemptManager(DummySmartHostSMTPRelayingManager(DummyQueue(self.tmpdir)), True, self.reactor)
    self.quietAttemptMgr = _AttemptManager(DummySmartHostSMTPRelayingManager(DummyQueue(self.tmpdir)), False, self.reactor)
    noisyBaseName = 'noisyMessage'
    quietBaseName = 'quietMessage'
    self.noisyMessage = os.path.join(self.tmpdir, noisyBaseName)
    self.quietMessage = os.path.join(self.tmpdir, quietBaseName)
    open((self.noisyMessage + '-D'), 'w').close()
    open((self.quietMessage + '-D'), 'w').close()
    self.noisyAttemptMgr.manager.managed['noisyRelayer'] = [noisyBaseName]
    self.quietAttemptMgr.manager.managed['quietRelayer'] = [quietBaseName]
    with open((self.noisyMessage + '-H'), 'w') as envelope:
        pickle.dump(['from-noisy@domain', 'to-noisy@domain'], envelope)
    with open((self.quietMessage + '-H'), 'w') as envelope:
        pickle.dump(['from-quiet@domain', 'to-quiet@domain'], envelope)
