Changeset 8436 for main/waeup.kofa/trunk
- Timestamp:
- 13 May 2012, 03:49:37 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8434 r8436 472 472 # Managers can contact student 473 473 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 474 self.student.email = None 474 475 self.browser.open(self.student_path) 475 476 self.browser.getLink("Send email").click() 476 477 self.browser.getControl(name="form.subject").value = 'Important subject' 477 478 self.browser.getControl(name="form.body").value = 'Hello!' 479 self.browser.getControl("Send message now").click() 480 self.assertTrue('An smtp server error occurred' in self.browser.contents) 481 self.student.email = 'xx@yy.zz' 478 482 self.browser.getControl("Send message now").click() 479 483 self.assertTrue('Your message has been sent' in self.browser.contents) -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r8181 r8436 165 165 body = translate(text, 'waeup.kofa', 166 166 target_language=self.PORTAL_LANGUAGE) 167 if not (from_addr and rcpt_addr): 168 return False 167 169 return send_mail( 168 170 from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config)
Note: See TracChangeset for help on using the changeset viewer.