<s> import json <EOL> from social . tests . backends . oauth import OAuth2Test <EOL> class AmazonOAuth2Test ( OAuth2Test ) : <EOL> backend_path = '<STR_LIT>' <EOL> user_data_url = '<STR_LIT>' <EOL> expected_username = '<STR_LIT>' <EOL> access_token_body = json . dumps ( { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } ) <EOL> user_data_body = json . dumps ( { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:email>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' <EOL> } ) <EOL> def test_login ( self ) : <EOL> self . do_login ( ) <EOL> def test_partial_pipeline ( self ) : <EOL> self . do_partial_pipeline ( ) <EOL> class AmazonOAuth2BrokenServerResponseTest ( OAuth2Test ) : <EOL> backend_path = '<STR_LIT>' <EOL> user_data_url = '<STR_LIT>' <EOL> expected_username = '<STR_LIT>' <EOL> access_token_body = json . dumps ( { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } ) <EOL> user_data_body = json . dumps ( { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:Name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> } ) <EOL> def test_login ( self ) : <EOL> self . do_login ( ) <EOL> def test_partial_pipeline ( self ) : <EOL> self . do_partial_pipeline ( ) </s>
