A simple, maybe obvious, docstring for util.send_email()
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 4 May 2011 13:11:37 +0000 (08:11 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 4 May 2011 13:11:37 +0000 (08:11 -0500)
mediagoblin/util.py

index 5b578a0063eed23217bf85aa8be8f38459be04c2..d24b59b6f264e7d1ea0663cf35cedc6b99fd5a7a 100644 (file)
@@ -142,6 +142,16 @@ def _clear_test_inboxes():
 ### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 def send_email(from_addr, to_addrs, subject, message_body):
+    """
+    Simple email sending wrapper, use this so we can capture messages
+    for unit testing purposes.
+
+    Args:
+     - from_addr: address you're sending the email from
+     - to_addrs: list of recipient email addresses
+     - subject: subject of the email
+     - message_body: email body text
+    """
     # TODO: make a mock mhost if testing is enabled
     if TESTS_ENABLED:
         mhost = FakeMhost()