Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

'''
Created on 5-Jan-2011

@author: rajveer
'''

from shop2020.clients.HelperClient import HelperClient
from 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.description
    
#def test_email_archival():
 #   client.markEmailAsSent(29)
    
def testAlive():
    return client.isAlive()

#test_get_reports()
#test_email_archival()

if __name__ == '__main__':
    print client.isAlive()