#NEWLINE# def create_user( self , **kwargs ) : #NEWLINE# #INDENT# 'Factory method for creating Users.' #NEWLINE# defaults = { #NEWLINE# #INDENT# 'username' : self . get_random_string ( ) , #NEWLINE# 'email' : '' , #NEWLINE# 'password' : self . get_random_string ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# defaults . update ( self ) #NEWLINE# return User . objects . create_user ( ** defaults )