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)
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)
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)
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)