#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . email = 'a@b.com' #NEWLINE# password = 'pass' #NEWLINE# self . test_user = CustomUser . objects . create_user ( self . email , password ) #NEWLINE# self . test_user . full_name = 'test name' #NEWLINE# self . test_user . save ( ) #NEWLINE# self . test_site = Site . objects . create ( domain = 'testdomain.com' , anonymous_allowed = True ) #NEWLINE# self . test_thread = Thread . objects . create ( site = self . test_site , url = 'test_url' ) #NEWLINE# self . client = Client ( ) #NEWLINE# self . endpoint_url = reverse ( 'comments:comment' )