diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-15 10:52:33 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-15 11:52:15 -0700 |
commit | 99911f6c4c7d51071f70709e55fabcd2e6853284 (patch) | |
tree | 9ae82d0d6c11e05bd9bd152c94993d21f744b252 /tests/test_00_xmldsig.py | |
parent | 4ef44631df5426e0b4808b1c79b51a37eb026a76 (diff) | |
download | pysaml2-99911f6c4c7d51071f70709e55fabcd2e6853284.tar.gz |
Fix python3 syntax errors
Retains python2.7 compatibility for all files. Fixes only syntax errors,
tests still fail on python3 for various reasons.
Diffstat (limited to 'tests/test_00_xmldsig.py')
-rw-r--r-- | tests/test_00_xmldsig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_00_xmldsig.py b/tests/test_00_xmldsig.py index 09d189a9..5b800194 100644 --- a/tests/test_00_xmldsig.py +++ b/tests/test_00_xmldsig.py @@ -86,7 +86,7 @@ class TestSPKIData: def testUsingTestData(self): """Test for spki_data_from_string() using test data""" new_spki_data = ds.spki_data_from_string(ds_data.TEST_SPKI_DATA) - print new_spki_data + print(new_spki_data) assert new_spki_data.spki_sexp[0].text.strip() == "spki sexp" assert new_spki_data.spki_sexp[1].text.strip() == "spki sexp2" @@ -148,7 +148,7 @@ class TestX509Data: def testAccessors(self): """Test for X509Data accessors""" st = ds.x509_issuer_serial_from_string(ds_data.TEST_X509_ISSUER_SERIAL) - print st + print(st) self.x509_data.x509_issuer_serial= st self.x509_data.x509_ski = ds.X509SKI(text="x509 ski") self.x509_data.x509_subject_name = ds.X509SubjectName( @@ -158,8 +158,8 @@ class TestX509Data: self.x509_data.x509_crl = ds.X509CRL(text="x509 crl") new_x509_data = ds.x509_data_from_string(self.x509_data.to_string()) - print new_x509_data.keyswv() - print new_x509_data.__dict__.keys() + print(new_x509_data.keyswv()) + print(new_x509_data.__dict__.keys()) assert new_x509_data.x509_issuer_serial assert isinstance(new_x509_data.x509_issuer_serial, ds.X509IssuerSerial) assert new_x509_data.x509_ski.text.strip() == "x509 ski" |