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

Should not be able to set invalid dates #9

Open
paalbra opened this issue Dec 28, 2018 · 0 comments
Open

Should not be able to set invalid dates #9

paalbra opened this issue Dec 28, 2018 · 0 comments
Assignees

Comments

@paalbra
Copy link
Collaborator

paalbra commented Dec 28, 2018

All dates (that are unixtime stamps) should be handled as ints and an error should be raised if you try something else.

E.g. this should not be allowed:

>>> import sig2dot.gpg.OpenPGPSig
>>> sig = sig2dot.gpg.OpenPGPSig.OpenPGPSig()
>>> sig.creationdate = "ASDAFS"
>>> import sig2dot.gpg.OpenPGPKey
>>> key = sig2dot.gpg.OpenPGPKey.OpenPGPKey()
>>> key.creationdate = "ABCDEF"
@paalbra paalbra self-assigned this Dec 28, 2018
@paalbra paalbra changed the title Should not be able to set invalide dates Should not be able to set invalid dates Dec 28, 2018
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

No branches or pull requests

1 participant