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

Removed deprecated Type aliases #814

Merged
merged 5 commits into from
Feb 7, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
missed this somehow
  • Loading branch information
alex committed Feb 3, 2019
commit 6a895d14338920c38ec263421b4f42cf3d34bbb9
7 changes: 2 additions & 5 deletions tests/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import flaky

from OpenSSL.crypto import TYPE_RSA, TYPE_DSA, Error, PKey
from OpenSSL.crypto import X509, X509Type, X509Name
from OpenSSL.crypto import X509, X509Name
from OpenSSL.crypto import (
X509Store,
X509StoreFlags,
Expand Down Expand Up @@ -1498,18 +1498,15 @@ def test_type(self):
"""
`X509` can be used to create instances of that type.
"""
assert X509 is X509Type
assert is_consistent_type(X509, 'X509')

def test_construction(self):
"""
`X509` takes no arguments and returns an instance of `X509`.
"""
certificate = X509()
assert isinstance(certificate, X509Type)
assert type(X509Type).__name__ == 'type'
assert isinstance(certificate, X509)
assert type(certificate).__name__ == 'X509'
assert type(certificate) == X509Type
assert type(certificate) == X509

def test_set_version_wrong_args(self):
Expand Down