#NEWLINE# def test_get_object( self ) : #NEWLINE# #INDENT# 'get_object should return the correct user.' #NEWLINE# view = views . UserDetailView ( ) #NEWLINE# view . request = self . request_factory . get ( '/' ) #NEWLINE# user = self . create_user ( ) #NEWLINE# view . request . user = user #NEWLINE# view . kwargs = { #NEWLINE# #INDENT# 'user_uuid' : user . uuid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( view . get_object ( ) , user )