def re_verify(cfile="config.xml"):
    token=readConfig("token",cfile)
    device_id=readConfig("device_id",cfile)
    ret=repeatVerifyService(token, device_id)
    if ret["code"]=="4" or ret["code"]=="1":
        writeConfig("token", ret["token"],cfile)
    elif ret["code"]=="-2" :
        verify(cfile)
    elif ret["code"]=="2" :
        verify(cfile)
    elif ret["code"]=="-3" :
        pass
def getLocal(cfile="config.xml"):
    imei=readConfig("imei",cfile)
    device_serial_number=readConfig("device_serial_number",cfile)
    getLocalService(imei, device_serial_number)
    return
#!/usr/bin/python 
#coding=utf-8 

from Testsuite00_ModuleTest import getLocalService
from Testsuite00_ModuleTest import readConfig

def getLocal(cfile="config.xml"):
    imei=readConfig("imei",cfile)
    device_serial_number=readConfig("device_serial_number",cfile)
    getLocalService(imei, device_serial_number)
    return

if __name__ == '__main__':  
    cfile="config.xml"
    imei=readConfig("imei",cfile)
    device_serial_number=readConfig("device_serial_number",cfile)
    getLocalService(1, device_serial_number)
    getLocalService(imei, 1)
    getLocalService(imei, device_serial_number)
    
    
    
#!/usr/bin/python
# coding=utf-8

from Testsuite00_ModuleTest import getPasswordService
from Testsuite00_ModuleTest import readConfig


if __name__ == "__main__":
    imei = readConfig("imei")
    device_serial_number = readConfig("device_serial_number")
    email = readConfig("email")

    getPasswordService("124124", device_serial_number, email)
    getPasswordService(imei, "9900023320855021", email)
    getPasswordService(imei, device_serial_number, "*****@*****.**")
    getPasswordService(imei, device_serial_number, email)