1.1 --- a/tests/test_message.py Sat Oct 20 19:27:25 2012 +0200
1.2 +++ b/tests/test_message.py Sun Oct 21 00:43:40 2012 +0200
1.3 @@ -2,16 +2,14 @@
1.4
1.5 from email.mime.multipart import MIMEMultipart
1.6 from email.mime.text import MIMEText
1.7 +import sys
1.8
1.9 if __name__ == "__main__":
1.10 message = MIMEMultipart()
1.11
1.12 - text1 = MIMEText("An update to the Wiki.", "moin")
1.13 -
1.14 - text2 = MIMEText("Another update to the Wiki.", "moin")
1.15 -
1.16 - message.attach(text1)
1.17 - message.attach(text2)
1.18 + for arg in sys.argv[1:]:
1.19 + text = MIMEText(arg, "moin")
1.20 + message.attach(text)
1.21
1.22 text = message.as_string()
1.23 print text