<s> from boto . cognito . identity . exceptions import ResourceNotFoundException <EOL> from tests . integration . cognito import CognitoTest <EOL> class TestCognitoIdentity ( CognitoTest ) : <EOL> """<STR_LIT>""" <EOL> def test_cognito_identity ( self ) : <EOL> response = self . cognito_identity . list_identity_pools ( max_results = <NUM_LIT:5> ) <EOL> expected_identity = { '<STR_LIT>' : self . identity_pool_id , <EOL> '<STR_LIT>' : self . identity_pool_name } <EOL> self . assertIn ( expected_identity , response [ '<STR_LIT>' ] ) <EOL> response = self . cognito_identity . describe_identity_pool ( <EOL> identity_pool_id = self . identity_pool_id <EOL> ) <EOL> self . assertEqual ( response [ '<STR_LIT>' ] , self . identity_pool_name ) <EOL> self . assertEqual ( response [ '<STR_LIT>' ] , self . identity_pool_id ) <EOL> self . assertFalse ( response [ '<STR_LIT>' ] ) <EOL> def test_resource_not_found_exception ( self ) : <EOL> with self . assertRaises ( ResourceNotFoundException ) : <EOL> self . cognito_identity . describe_identity_pool ( <EOL> identity_pool_id = '<STR_LIT>' <EOL> ) </s>
