#NEWLINE# def test_user_attrs( self ) : #NEWLINE# #INDENT# '\n        Test that the lazy objects returned behave just like the wrapped objects.\n        ' #NEWLINE# self . client . login ( username = 'super' , password = 'secret' ) #NEWLINE# user = authenticate ( username = 'super' , password = 'secret' ) #NEWLINE# response = self . client . get ( '/auth_processor_user/' ) #NEWLINE# self . assertContains ( response , 'unicode: super' ) #NEWLINE# self . assertContains ( response , ( 'id: %d' % self . superuser . pk ) ) #NEWLINE# self . assertContains ( response , 'username: super' ) #NEWLINE# self . assertContains ( response , 'url: /userpage/super/' ) #NEWLINE# ( Q ( user = response . context [ 'user' ] ) & Q ( someflag = True ) ) #NEWLINE# self . assertEqual ( response . context [ 'user' ] , user ) #NEWLINE# self . assertEqual ( user , response . context [ 'user' ] )