|
12 | 12 | import cryptography.exceptions
|
13 | 13 | from cryptography.hazmat.backends import default_backend
|
14 | 14 | from cryptography.hazmat.primitives.asymmetric import rsa, dsa, ec
|
15 |
| -from eight import str, open |
16 | 15 |
|
17 | 16 | sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
18 |
| -from signxml import (XMLSigner, XMLVerifier, XMLSignatureProcessor, methods, namespaces, InvalidInput, InvalidSignature, |
19 |
| - InvalidCertificate, InvalidDigest) |
| 17 | +from signxml import (XMLSigner, XMLVerifier, XMLSignatureProcessor, methods, namespaces, InvalidInput, # noqa |
| 18 | + InvalidSignature, InvalidCertificate, InvalidDigest) |
20 | 19 |
|
21 | 20 | def reset_tree(t, method):
|
22 | 21 | if not isinstance(t, str):
|
@@ -475,7 +474,10 @@ def test_signature_properties_with_detached_method_re_enveloping(self):
|
475 | 474 | key=key,
|
476 | 475 | reference_uri="#mytest",
|
477 | 476 | signature_properties=sigprop)
|
478 |
| - fulldoc = b'<ns0:root xmlns:ns0="http://enveloping.namespace">' + etree.tostring(signature) + etree.tostring(doc) + b'</ns0:root>' |
| 477 | + fulldoc = b'<ns0:root xmlns:ns0="http://enveloping.namespace">' \ |
| 478 | + + etree.tostring(signature) \ |
| 479 | + + etree.tostring(doc) \ |
| 480 | + + b'</ns0:root>' |
479 | 481 | XMLVerifier().verify(etree.fromstring(fulldoc), x509_cert=cert, expect_references=2)
|
480 | 482 |
|
481 | 483 |
|
|
0 commit comments