'Test that arbitrary users are notified of new answers.'

def test_notify_arbitrary(self):

    watcher = UserFactory()
    QuestionReplyEvent.notify(watcher, self.question)
    self.makeAnswer()
    eq_(2, len(mail.outbox))
    notification = [m for m in mail.outbox if (m.to == [watcher.email])][0]
    eq_([watcher.email], notification.to)
    eq_(u'Re:    {0}'.format(self.question.title), notification.subject)
    body = re.sub('auth=[a-zA-Z0-9%_-]+', 'auth=AUTH', notification.body)
    starts_with(body, ANSWER_EMAIL.format(to_user=display_name(watcher), **self.format_args()))
