<s> from django . conf import settings <EOL> from django . core . urlresolvers import reverse <EOL> from django . test import TestCase <EOL> from socialregistration . contrib . instagram . models import InstagramProfile <EOL> from socialregistration . tests import TemplateTagTest , OAuth2Test <EOL> import json <EOL> class TestTemplateTag ( TemplateTagTest , TestCase ) : <EOL> def get_tag ( self ) : <EOL> return '<STR_LIT>' , '<STR_LIT>' <EOL> class TestInstagram ( OAuth2Test , TestCase ) : <EOL> profile = InstagramProfile <EOL> def get_redirect_url ( self ) : <EOL> return reverse ( '<STR_LIT>' ) <EOL> def get_callback_url ( self ) : <EOL> return reverse ( '<STR_LIT>' ) <EOL> def get_setup_callback_url ( self ) : <EOL> return reverse ( '<STR_LIT>' ) <EOL> def get_callback_mock_response ( self , * args , ** kwargs ) : <EOL> return { '<STR_LIT:status>' : '<STR_LIT>' } , json . dumps ( { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:user>" : { <EOL> "<STR_LIT:id>" : "<STR_LIT>" , <EOL> "<STR_LIT:username>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } <EOL> } ) <EOL> def get_setup_callback_mock_response ( self , * args , ** kwargs ) : <EOL> return { '<STR_LIT:status>' : '<STR_LIT>' } , json . dumps ( { '<STR_LIT:user>' : { '<STR_LIT:id>' : '<STR_LIT>' } } ) <EOL> def create_profile ( self , user ) : <EOL> InstagramProfile . objects . create ( user = user , instagram = '<STR_LIT>' ) <EOL> class TestAuthenticationBackend ( TestCase ) : <EOL> def test_authentication_backend_should_be_configured_in_settings ( self ) : <EOL> self . assertTrue ( '<STR_LIT>' in settings . AUTHENTICATION_BACKENDS ) </s>
