Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognise and add tests for various types of invalid MAC addresses #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Southparkfan
Copy link

The YAML 1.1 specification allows PyYAML to parse certain MAC addresses as sexagesimal integers. Wrapping the MAC address between quotes is a valid workaround for that behavior, but because most users aren't aware of this YAML quirk, we should inform them explicitly.

Finally, I have added several tests for MAC address validation.

Fixes #62

The YAML 1.1 specification allows PyYAML to parse certain MAC
addresses as sexagesimal integers. Wrapping the MAC address
between quotes is a valid workaround for that behavior, but
because most users aren't aware of this YAML quirk, we should
inform them explicitly.

Finally, I have added several tests for MAC address validation.
@Southparkfan
Copy link
Author

tox runs just fine in my venv. Not sure why the tests fail...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAC address validation fails with TypeError, exception not caught for proper logging
1 participant