def test_dpid_string_to_hex(self): tmp = utils.string_to_hex(self.dpid_string, utils.DPID) self.assertEqual(tmp, self.dpid_hex)
def test_mac_string_to_hex(self): tmp = utils.string_to_hex(self.mac_string, utils.MAC) self.assertEqual(tmp, self.mac_hex)