Subversion Repositories SmartDukaan

Rev

Rev 23687 | 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
'''
23689 govind 6
from shop2020.clients.UserClient import UserClient
23687 govind 7
 
8
from shop2020.thriftpy.utils.ttypes import *
9
 
10
user_client = UserClient()
11
client = user_client.get_client()
12
 
13
"""
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"
20
client.sendMail(mail)
21
"""
22
 
23
#def test_get_reports():
24
#    reports = client.getReports(2)
25
#   for r in reports:
26
 #       print r.description
27
 
28
#def test_email_archival():
29
 #   client.markEmailAsSent(29)
30
 
31
 
32
 
33
#test_get_reports()
34
#test_email_archival()
35
 
36
if __name__ == '__main__':
37
    print client.isAlive()