@@ -298,14 +298,14 @@ def test_acr_mapping_per_idp_in_authn_response(self, context, idp_conf, sp_conf,
298
298
]
299
299
)
300
300
def test_respect_sp_entity_categories (
301
- self ,
302
- context ,
303
- entity_category ,
304
- entity_category_module ,
305
- expected_attributes ,
306
- idp_conf ,
307
- sp_conf ,
308
- internal_response
301
+ self ,
302
+ context ,
303
+ entity_category ,
304
+ entity_category_module ,
305
+ expected_attributes ,
306
+ idp_conf ,
307
+ sp_conf ,
308
+ internal_response
309
309
):
310
310
idp_metadata_str = create_metadata_from_config_dict (idp_conf )
311
311
idp_conf ["service" ]["idp" ]["policy" ]["default" ]["entity_categories" ] = [entity_category_module ]
@@ -365,7 +365,7 @@ def test_metadata_endpoint(self, context, idp_conf):
365
365
assert idp_conf ["entityid" ] in resp .message
366
366
367
367
def test_custom_attribute_release_with_less_attributes_than_entity_category (
368
- self , context , idp_conf , sp_conf , internal_response
368
+ self , context , idp_conf , sp_conf , internal_response
369
369
):
370
370
idp_metadata_str = create_metadata_from_config_dict (idp_conf )
371
371
idp_conf ["service" ]["idp" ]["policy" ]["default" ]["entity_categories" ] = ["swamid" ]
@@ -387,8 +387,8 @@ def test_custom_attribute_release_with_less_attributes_than_entity_category(
387
387
internal_response .requester = sp_conf ["entityid" ]
388
388
resp = self .get_auth_response (samlfrontend , context , internal_response , sp_conf , idp_metadata_str )
389
389
assert len (resp .ava .keys ()) == (
390
- len (expected_attributes )
391
- - len (custom_attributes [internal_response .auth_info .issuer ][internal_response .requester ]["exclude" ])
390
+ len (expected_attributes )
391
+ - len (custom_attributes [internal_response .auth_info .issuer ][internal_response .requester ]["exclude" ])
392
392
)
393
393
394
394
@@ -442,7 +442,7 @@ class TestSAMLVirtualCoFrontend(TestSAMLFrontend):
442
442
CO_O : ["Medium Energy Synchrotron Source" ],
443
443
CO_C : ["US" ],
444
444
CO_CO : ["United States" ],
445
- CO_NOREDUORGACRONYM : ["MESS" ]
445
+ CO_NOREDUORGACRONYM : ["MESS" ],
446
446
}
447
447
KEY_SSO = "single_sign_on_service"
448
448
@@ -474,7 +474,7 @@ def frontend(self, idp_conf, sp_conf):
474
474
conf = {
475
475
"idp_config" : idp_conf ,
476
476
"endpoints" : ENDPOINTS ,
477
- "collaborative_organizations" : [collab_org ]
477
+ "collaborative_organizations" : [collab_org ],
478
478
}
479
479
480
480
# Use a richer set of internal attributes than what is provided
@@ -652,42 +652,40 @@ def test_co_static_attributes(self, frontend, context, internal_response,
652
652
class TestSubjectTypeToSamlNameIdFormat :
653
653
def test_should_default_to_persistent (self ):
654
654
assert (
655
- subject_type_to_saml_nameid_format ("unmatched" )
656
- == NAMEID_FORMAT_PERSISTENT
655
+ subject_type_to_saml_nameid_format ("unmatched" )
656
+ == NAMEID_FORMAT_PERSISTENT
657
657
)
658
658
659
659
def test_should_map_persistent (self ):
660
660
assert (
661
- subject_type_to_saml_nameid_format (NAMEID_FORMAT_PERSISTENT )
662
- == NAMEID_FORMAT_PERSISTENT
661
+ subject_type_to_saml_nameid_format (NAMEID_FORMAT_PERSISTENT )
662
+ == NAMEID_FORMAT_PERSISTENT
663
663
)
664
664
665
665
def test_should_map_transient (self ):
666
666
assert (
667
- subject_type_to_saml_nameid_format (NAMEID_FORMAT_TRANSIENT )
668
- == NAMEID_FORMAT_TRANSIENT
667
+ subject_type_to_saml_nameid_format (NAMEID_FORMAT_TRANSIENT )
668
+ == NAMEID_FORMAT_TRANSIENT
669
669
)
670
670
671
671
def test_should_map_emailaddress (self ):
672
672
assert (
673
- subject_type_to_saml_nameid_format (NAMEID_FORMAT_EMAILADDRESS )
674
- == NAMEID_FORMAT_EMAILADDRESS
673
+ subject_type_to_saml_nameid_format (NAMEID_FORMAT_EMAILADDRESS )
674
+ == NAMEID_FORMAT_EMAILADDRESS
675
675
)
676
676
677
677
def test_should_map_unspecified (self ):
678
678
assert (
679
- subject_type_to_saml_nameid_format (NAMEID_FORMAT_UNSPECIFIED )
680
- == NAMEID_FORMAT_UNSPECIFIED
679
+ subject_type_to_saml_nameid_format (NAMEID_FORMAT_UNSPECIFIED )
680
+ == NAMEID_FORMAT_UNSPECIFIED
681
681
)
682
682
683
683
def test_should_map_public (self ):
684
684
assert (
685
- subject_type_to_saml_nameid_format ("public" )
686
- == NAMEID_FORMAT_PERSISTENT
685
+ subject_type_to_saml_nameid_format ("public" ) == NAMEID_FORMAT_PERSISTENT
687
686
)
688
687
689
688
def test_should_map_pairwise (self ):
690
689
assert (
691
- subject_type_to_saml_nameid_format ("pairwise" )
692
- == NAMEID_FORMAT_TRANSIENT
690
+ subject_type_to_saml_nameid_format ("pairwise" ) == NAMEID_FORMAT_TRANSIENT
693
691
)
0 commit comments