<s> from oic . utils . claims import ClaimsMode <EOL> def test_claims_for_user ( ) : <EOL> user = "<STR_LIT>" <EOL> user2mode = { user : "<STR_LIT>" } <EOL> claims_mode = ClaimsMode ( user2mode ) <EOL> assert claims_mode . aggregate ( user ) <EOL> def test_claims_for_missing_user ( ) : <EOL> claims_mode = ClaimsMode ( { } ) <EOL> assert not claims_mode . aggregate ( "<STR_LIT>" ) <EOL> def test_non_aggregate_claims ( ) : <EOL> user = "<STR_LIT>" <EOL> claims_mode = ClaimsMode ( { user : "<STR_LIT>" } ) <EOL> assert not claims_mode . aggregate ( user ) </s>
