#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# for ( key , value ) in DJOAuth2Conf . _meta . defaults . iteritems ( ) : #NEWLINE# #INDENT# setattr ( settings , key , value ) #NEWLINE# assert ( getattr ( settings , key ) == value ) #NEWLINE# #UNINDENT# self . user = User . objects . create ( email = 'testuser@locu.com' , first_name = 'Test' , last_name = 'User' , password = 'password' , username = 'testuser@locu.com' ) #NEWLINE# self . user . set_password ( self . user . password ) #NEWLINE# self . user . save ( ) #NEWLINE# self . client = Client . objects . create ( key = 'be6f31235c6118273918c4c70f6768' , secret = '89dcee4e6fe655377a19944c2bee9b' , name = 'Client 1' , description = 'Client 1' , redirect_uri = 'https://locu.com' , user = key . user ) #NEWLINE# self . client2 = Client . objects . create ( key = '5cf2a7ce5e13ee4dde88717e48fcc6' , secret = '4cf14dc7e7c539047e3d2afb0bdba5' , name = 'Client 2' , description = 'Client 2' , redirect_uri = 'https://locu.com' , user = self . user ) #NEWLINE# Scope . objects . create ( name = 'autologin' , description = 'Log you in automatically' ) #NEWLINE# Scope . objects . create ( name = 'verify' , description = 'Verify your business on your behalf' ) #NEWLINE# Scope . objects . create ( name = 'example' , description = 'User your business as an example' )