diff options
author | Nick Bastin <nick.bastin@gmail.com> | 2015-12-13 05:37:04 -0800 |
---|---|---|
committer | Nick Bastin <nick.bastin@gmail.com> | 2015-12-13 05:37:04 -0800 |
commit | a7f504fcd61eda90456366a7c7bf608fd03f5d47 (patch) | |
tree | eb95f2667eb616422e457ae9f55ec3bb59725452 /tests/test_x509_ext.py | |
parent | 74021e97f842b7b5843863bc988f39710a9258f4 (diff) | |
download | cryptography-a7f504fcd61eda90456366a7c7bf608fd03f5d47.tar.gz cryptography-a7f504fcd61eda90456366a7c7bf608fd03f5d47.tar.bz2 cryptography-a7f504fcd61eda90456366a7c7bf608fd03f5d47.zip |
PEP8 fixes
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r-- | tests/test_x509_ext.py | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index fbd8b882..bbdc6079 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -604,8 +604,14 @@ class TestAuthorityKeyIdentifier(object): def test_authority_cert_serial_number_not_integer(self): dirname = x509.DirectoryName( x509.Name([ - x509.NameAttribute(x509.ObjectIdentifier('2.999.1'), u'value1'), - x509.NameAttribute(x509.ObjectIdentifier('2.999.2'), u'value2'), + x509.NameAttribute( + x509.ObjectIdentifier('2.999.1'), + u'value1' + ), + x509.NameAttribute( + x509.ObjectIdentifier('2.999.2'), + u'value2' + ), ]) ) with pytest.raises(TypeError): @@ -618,8 +624,14 @@ class TestAuthorityKeyIdentifier(object): def test_authority_issuer_not_none_serial_none(self): dirname = x509.DirectoryName( x509.Name([ - x509.NameAttribute(x509.ObjectIdentifier('2.999.1'), u'value1'), - x509.NameAttribute(x509.ObjectIdentifier('2.999.2'), u'value2'), + x509.NameAttribute( + x509.ObjectIdentifier('2.999.1'), + u'value1' + ), + x509.NameAttribute( + x509.ObjectIdentifier('2.999.2'), + u'value2' + ), ]) ) with pytest.raises(ValueError): @@ -1849,7 +1861,6 @@ class TestExtendedKeyUsageExtension(object): class TestAccessDescription(object): def test_invalid_access_method(self): - # access_method can be *any* valid OID with pytest.raises(TypeError): x509.AccessDescription("notanoid", x509.DNSName(u"test")) |