Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23687 govind 1
'''
2
Created on 22/05/2018
3
 
4
@author: Govind
5
'''
6
 
23689 govind 7
from shop2020.clients.LogisticsClient import LogisticsClient
23687 govind 8
from shop2020.thriftpy.utils.ttypes import *
9
 
10
 
23689 govind 11
 
23688 govind 12
logistics_client=LogisticsClient()
23687 govind 13
client = logistics_client.get_client()
14
 
15
"""
16
mail = Mail()
17
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
18
mail.subject = "Test mail subject"
19
mail.data = "Mail text"
20
mail.password = "dummy"
21
mail.sender="rajveer.singh@shop2020.in"
22
client.sendMail(mail)
23
"""
24
 
25
#def test_get_reports():
26
#    reports = client.getReports(2)
27
#   for r in reports:
28
 #       print r.description
29
 
30
#def test_email_archival():
31
 #   client.markEmailAsSent(29)
32
 
33
 
34
 
35
#test_get_reports()
36
#test_email_archival()
37
 
38
if __name__ == '__main__':
39
    print client.isAlive()