Subversion Repositories SmartDukaan

Rev

Rev 7677 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
581 rajveer 1
'''
2
Created on 5-Jan-2011
3
 
4
@author: rajveer
5
'''
6
 
7
from shop2020.clients.HelperClient import HelperClient
8
from shop2020.thriftpy.utils.ttypes import *
9
 
10
helper_client = HelperClient()
11
client = helper_client.get_client()
12
 
3005 chandransh 13
"""
581 rajveer 14
mail = Mail()
15
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
16
mail.subject = "Test mail subject"
17
mail.data = "Mail text"
18
mail.password = "dummy"
19
mail.sender="rajveer.singh@shop2020.in"
1891 ankur.sing 20
client.sendMail(mail)
21
"""
22
 
23668 govind 23
#def test_get_reports():
24
#    reports = client.getReports(2)
25
#   for r in reports:
26
 #       print r.description
1891 ankur.sing 27
 
23668 govind 28
#def test_email_archival():
29
 #   client.markEmailAsSent(29)
30
 
31
def testAlive():
32
    return client.isAlive()
3005 chandransh 33
 
23668 govind 34
#test_get_reports()
35
#test_email_archival()
7677 anupam.sin 36
 
37
if __name__ == '__main__':
23668 govind 38
    print client.isAlive()