'Test that notifications to the asker have a correct reply to field.'

@override_settings(DEFAULT_REPLY_TO_EMAIL='replyto@example.com')
def test_notify_anonymous_reply_to(self):

    ANON_EMAIL = 'anonymous@example.com'
    QuestionReplyEvent.notify(ANON_EMAIL, self.question)
    self.makeAnswer()
    notification = [m for m in mail.outbox if (m.to == [ANON_EMAIL])][0]
    headers = dict(((k.lower(), v) for (k, v) in notification.extra_headers.items()))
    eq_('replyto@example.com', headers['reply-to'])
