コード例 #1
0
ファイル: testcase_wifidog.py プロジェクト: zeewii/BHU
 def test_190_hostname(self):
     u"""修改为其它正确的地址有效性"""
     hostname = "test102.100msh.com"
     wifidog_business.edit_hostname(self,hostname)
     url = network_control.rand_redirect_get_url(self)
     data = wifidog_business.redirest_network(self)
     assert hostname in url,u"修改为其它正确的地址:%s,有效性认证失败"%hostname
コード例 #2
0
ファイル: testcase_wifidog.py プロジェクト: zeewii/BHU
 def test_192_hostname(self):
     u"""修改为空的地址有效性"""
     hostname = None
     default_hostname = "wifi.100msh.com"
     wifidog_business.edit_hostname(self,hostname)
     url = network_control.rand_redirect_get_url(self)
     wifidog_business.redirest_network(self)
     assert default_hostname in url,u"修改为空地址有效性认证失败,主机名不是默认的"%hostname
コード例 #3
0
ファイル: testcase_wifidog.py プロジェクト: zeewii/BHU
 def test_189_hostname(self):
     u"""默认服务器地址"""
     default_hostname = "wifi.100msh.com"
     data = general_control.get_wifidog_hostname(self)
     general_control.apply(self)
     time.sleep(30)
     url = network_control.rand_redirect_get_url(self)
     assert default_hostname in (data and  url),u"默认认证服务器不是%s"%default_hostname