Skip to content

Commit f45794f

Browse files
committed
Fix test on python3
1 parent 6f04918 commit f45794f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# python3-saml changelog
22
### 1.2.5 (Jun 2, 2017)
3-
* Fix issue related with multicers (multicerts were not used on response view)
3+
* Fix issue related with multicers (multicerts were not used on response validation)
44
### 1.2.4 (May 18, 2017)
55
* Publish KeyDescriptor[use=encryption] only when required
66
* [#57](https://github.com/onelogin/python3-saml/pull/57) Be able to register future SP x509cert on the settings and publish it on SP metadata

tests/src/OneLogin/saml2_tests/settings_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,14 @@ def testGetSPMetadataWithx509certNew(self):
437437
metadata = compat.to_string(settings.get_sp_metadata())
438438
self.assertNotEqual(len(metadata), 0)
439439
self.assertIn('<md:SPSSODescriptor', metadata)
440-
self.assertEquals(2, metadata.count('<md:KeyDescriptor'))
441-
self.assertEquals(2, metadata.count('<md:KeyDescriptor use="signing"'))
442-
self.assertEquals(0, metadata.count('<md:KeyDescriptor use="encryption"'))
440+
self.assertEqual(2, metadata.count('<md:KeyDescriptor'))
441+
self.assertEqual(2, metadata.count('<md:KeyDescriptor use="signing"'))
442+
self.assertEqual(0, metadata.count('<md:KeyDescriptor use="encryption"'))
443443

444444
settings_info['security']['wantNameIdEncrypted'] = True
445445
settings_info['security']['wantAssertionsEncrypted'] = False
446446
settings = OneLogin_Saml2_Settings(settings_info)
447-
metadata = settings.get_sp_metadata()
447+
metadata = compat.to_string(settings.get_sp_metadata())
448448
self.assertEqual(4, metadata.count('<md:KeyDescriptor'))
449449
self.assertEqual(2, metadata.count('<md:KeyDescriptor use="signing"'))
450450
self.assertEqual(2, metadata.count('<md:KeyDescriptor use="encryption"'))

0 commit comments

Comments
 (0)