def test_024_boot_upgrade(self):
     u"""测试勾上 upgrade on boot(testlink_ID:809_4)"""
     log.debug("024")
     tmp = UpgradeBusiness(self.driver)
     result = tmp.upgrade_boot(data_basic['DUT_ip'],data_basic['sshUser'],\
             data_login['all'],data_basic['version'],data_basic['http_new_addr'])
     assert result, "after clicking upgrade on boot can upgrade,fail!"
     print "after clicking upgrade on boot can upgrade,pass!"
 def test_021_boot_downgrade(self):
     u"""测试cancel downgrade on boot(testlink_ID:809_1)"""
     log.debug("021")
     tmp = UpgradeBusiness(self.driver)
     result = tmp.upgrade_boot(data_basic['DUT_ip'],data_basic['sshUser'],\
             data_login['all'],data_basic['version'],data_basic['http_old_addr'])
     assert result, "after cancelling downgrade on boot can't downgrade,fail!"
     print "after cancelling downgrade on boot can't downgrade,pass!"