Rev 3005 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
'''Created on 5-Jan-2011@author: rajveer'''from shop2020.clients.HelperClient import HelperClientfrom shop2020.thriftpy.utils.ttypes import *helper_client = HelperClient()client = helper_client.get_client()"""mail = Mail()mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]mail.subject = "Test mail subject"mail.data = "Mail text"mail.password = "dummy"mail.sender="rajveer.singh@shop2020.in"client.sendMail(mail)"""def test_get_reports():reports = client.getReports(2)for r in reports:print r.descriptiondef test_email_archival():client.markEmailAsSent(29)test_get_reports()test_email_archival()if __name__ == '__main__':a = [1, 2]a = a + [3]print a