thomas: utils/testing test-send-group-invitation-issue2745.py, 1.1, 1.2

cvs at kolab.org cvs at kolab.org
Fri Jul 11 17:35:13 CEST 2008


Author: thomas

Update of /kolabrepository/utils/testing
In directory doto:/tmp/cvs-serv31758

Modified Files:
	test-send-group-invitation-issue2745.py 
Log Message:
Updated test script for issue2745 to use consistent addresses


Index: test-send-group-invitation-issue2745.py
===================================================================
RCS file: /kolabrepository/utils/testing/test-send-group-invitation-issue2745.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test-send-group-invitation-issue2745.py	11 Jul 2008 15:24:05 -0000	1.1
+++ test-send-group-invitation-issue2745.py	11 Jul 2008 15:35:11 -0000	1.2
@@ -53,9 +53,8 @@
 END:DAYLIGHT
 END:VTIMEZONE
 BEGIN:VEVENT
-ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:thomas at intevation.de
-ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:gruppe_test at test.hq
-ORGANIZER:MAILTO:ltest3 at test.hq
+ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:%s
+ORGANIZER:MAILTO:%s
 DTSTART;TZID="Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":20080711T203000
 DTEND;TZID="Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":20080711T210000
 RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=FR;WKST=MO
@@ -80,7 +79,7 @@
 END:VCALENDAR
 """
 
-toaddr = [sys.argv[1]]
+toaddr = sys.argv[1]
 smtpserver='localhost'
 # if you set a loginname, a connection via TLS and authentification is tried
 loginname = None
@@ -95,6 +94,6 @@
     server.starttls()
     server.login(loginname,password)
 
-server.sendmail(fromaddr, toaddr, msg % (fromaddr, string.join(toaddr, ", ")))
+server.sendmail(fromaddr, [toaddr], msg % (toaddr, fromaddr, toaddr, fromaddr))
 
 server.quit()





More information about the commits mailing list