X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=tests%2Ftest_crts.py;h=04e54e4747194edf72ecd84113eb3eb36dfb2c23;hb=88a72bcbbb16c2e0d58b6c6fdc6c51b8e517ee7f;hp=a096412333df3248740d3a467ba2eb43d47aa3d7;hpb=7aed684a10179b2e57e81369e956ac6df4fb135e;p=pyderasn.git diff --git a/tests/test_crts.py b/tests/test_crts.py index a096412..04e54e4 100644 --- a/tests/test_crts.py +++ b/tests/test_crts.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyDERASN -- Python ASN.1 DER codec with abstract structures -# Copyright (C) 2017 Sergey Matveev +# Copyright (C) 2017-2018 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as @@ -91,20 +91,20 @@ class AttributeValue(Any): class OrganizationName(Choice): schema = ( - ('printableString', PrintableString()), - ('teletexString', TeletexString()), + ("printableString", PrintableString()), + ("teletexString", TeletexString()), ) class AttributeTypeAndValue(Sequence): schema = ( - ("type", AttributeType(defines=("value", { + ("type", AttributeType(defines=(((".", "value"), { ObjectIdentifier("2.5.4.6"): PrintableString(), ObjectIdentifier("2.5.4.8"): PrintableString(), ObjectIdentifier("2.5.4.7"): PrintableString(), ObjectIdentifier("2.5.4.10"): OrganizationName(), ObjectIdentifier("2.5.4.3"): PrintableString(), - }))), + }),))), ("value", AttributeValue()), )