Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
7
 
8
from shop2020.thriftpy.utils.ttypes import *
9
from shop2020.clients.PromotionClient import PromotionClient
10
 
11
 
12
 
13
promotin_client=PromotionClient()
14
client = promotin_client.get_client()
15
 
16
"""
17
mail = Mail()
18
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
19
mail.subject = "Test mail subject"
20
mail.data = "Mail text"
21
mail.password = "dummy"
22
mail.sender="rajveer.singh@shop2020.in"
23
client.sendMail(mail)
24
"""
25
 
26
#def test_get_reports():
27
#    reports = client.getReports(2)
28
#   for r in reports:
29
 #       print r.description
30
 
31
#def test_email_archival():
32
 #   client.markEmailAsSent(29)
33
 
34
 
35
 
36
#test_get_reports()
37
#test_email_archival()
38
 
39
if __name__ == '__main__':
40
    print client.isAlive()