-
Committer:
Payer Hans-Christian
-
Date:
2011-06-20 11:46:13 UTC
-
Revision ID:
hans.payer@net-so.org-20110620114613-7dkjelg4zspqlzq0
setup for lab12 - pymessenger.
Write a program that imports the following names from a "settings" module:
RECIPIENTS a list of (name, email-address) tuples
STARTTIME datetime.datetime object for first message
DAYCOUNT number of daily message generations
The program should produce a message of the format:
Date: {{date}}
From: website@example.com
To: {{recipient}}
Message-Id: <NNNNNN>
This is a test message.
Your program should save these messages in the messages table.
Use test-driven development, and state the purpose of each test in the suite in docstrings that will eventually document your program.
Time your program for DAYCOUNTS of 1, 10, 50, 100, and 500 and plot the results (on a sheet of paper). How reliable are the timings?