From f4d4936abf61200d4f1a7164fce3466a52547c6d Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 16 Aug 2007 10:54:28 +0000 Subject: [PATCH] Added a return value to the test frameworks TestSMTPConnection.send_messages, to match the real implementation. Thanks for the suggestion and fix, Michael . git-svn-id: http://code.djangoproject.com/svn/django/trunk@5899 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/test/utils.py b/django/test/utils.py index ef88a19976..ae3798634e 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -36,6 +36,7 @@ class TestSMTPConnection(object): def send_messages(self, messages): "Redirect messages to the dummy outbox" mail.outbox.extend(messages) + return len(messages) def setup_test_environment(): """Perform any global pre-test setup. This involves: