]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/test_pfx.py
Py27 compatible test_pfx
[pygost.git] / pygost / test_pfx.py
index 618799a3319a88c22440b431ce81b5f6c8c986df..2e2c76f2120a17007e40aaf9522c94598c224b7a 100644 (file)
@@ -234,7 +234,7 @@ class TestPFX2020(TestCase):
     ca_pub = gost3410.pub_unmarshal(bytes(OctetString().decod(bytes(
         ca_cert["tbsCertificate"]["subjectPublicKeyInfo"]["subjectPublicKey"]
     ))))
-    password = "Пароль для PFX".encode("utf-8")
+    password = u"Пароль для PFX".encode("utf-8")
     cert_test = Certificate().decod(b64decode(b"""
         MIICLjCCAdugAwIBAgIEAYy6hDAKBggqhQMHAQEDAjA4MQ0wCwYDVQQKEwRUSzI2MS
         cwJQYDVQQDEx5DQSBUSzI2OiBHT1NUIDM0LjEwLTEyIDI1Ni1iaXQwHhcNMDEwMTAx