示例#1
0
文件: network.py 项目: spointu/mmc
 def test06_has_enough_info_false(self):
     """ test of info complexity """
     iface_info = {"ip": "192.168.1.25", 
                   "mac": None, 
                   "netmask": "255.255.255.0" , 
                   "gateway" : "192.168.1.1"}
     result = NetUtils.has_enough_info(iface_info)
     self.assertEqual(result, False)
示例#2
0
文件: network.py 项目: spointu/mmc
 def test05_has_enough_info_true(self):
     """ test of info complexity """
     iface_info = {"ip": "192.168.1.25", 
                   "mac": "00:55:47:f0:d4", 
                   "netmask": "255.255.255.0" , 
                   "gateway" : "192.168.1.1"}
     result = NetUtils.has_enough_info(iface_info)
     self.assertEqual(result, True)
示例#3
0
 def test06_has_enough_info_false(self):
     """ test of info complexity """
     iface_info = {
         "ip": "192.168.1.25",
         "mac": None,
         "netmask": "255.255.255.0",
         "gateway": "192.168.1.1"
     }
     result = NetUtils.has_enough_info(iface_info)
     self.assertEqual(result, False)
示例#4
0
 def test05_has_enough_info_true(self):
     """ test of info complexity """
     iface_info = {
         "ip": "192.168.1.25",
         "mac": "00:55:47:f0:d4",
         "netmask": "255.255.255.0",
         "gateway": "192.168.1.1"
     }
     result = NetUtils.has_enough_info(iface_info)
     self.assertEqual(result, True)