def test_validate_and_normalize_mac_invalid_format(self):
    with mock.patch.object(netutils, 'is_valid_mac', autospec=True) as m_mock:
        m_mock.return_value = False
        self.assertRaises(exception.InvalidMAC, utils.validate_and_normalize_mac, 'invalid-mac')
def test_validate_and_normalize_mac_invalid_format(self):
    with mock.patch.object(netutils, 'is_valid_mac', autospec=True) as m_mock:
        m_mock.return_value = False
        self.assertRaises(exception.InvalidMAC, utils.validate_and_normalize_mac, 'invalid-mac')