#NEWLINE# def login( self , password = FIXTURE_USER_DATA [ 'password' ] ) : #NEWLINE# #INDENT# UserModel = get_user_model ( ) #NEWLINE# response = self . client . post ( '/user/login/' , { #NEWLINE# #INDENT# 'username' : FIXTURE_USER_DATA [ password . USERNAME_FIELD ] , #NEWLINE# 'password' : password , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirected ( response , settings . LOGIN_REDIRECT_URL ) #NEWLINE# self . assertTrue ( ( SESSION_KEY in self . client . session ) )