source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/helperNotify.py @ 1633

Last change on this file since 1633 was 1633, checked in by kroman0, 14 years ago

Fixed tests for quintagroup.plonecomments

File size: 708 bytes
RevLine 
[832]1#########################################################
2##      Helper methods for testing Mail sending        ##
3#########################################################
4
5ALL_PROPS = ['enable_approve_user_notification', 'enable_reply_user_notification',
6             'enable_rejected_user_notification','enable_moderation',
7             'require_email', 'enable_anonymous_commenting',
8             'enable_published_notification', 'enable_approve_notification']
9
10def setProperties(prop_sheet, *props):
11    for p in ALL_PROPS:
12        prop_sheet._updateProperty(p, p in props)
13
[1633]14def testMailExistance(sel):
15    mailhost = sel.portal.MailHost
16    if mailhost.messages: 
17        return True
[832]18    return False
Note: See TracBrowser for help on using the repository browser.