#NEWLINE# def test_logout( self ) : #NEWLINE# #INDENT# user = TestUsers . new_user ( username = 'lol' , password = 'lol' ) #NEWLINE# self . client . login ( username = 'lol' , password = 'lol' ) #NEWLINE# self . assertEqual ( int ( self . client . session [ '_auth_user_id' ] ) , user . id ) #NEWLINE# response = self . client . delete ( self . url ) #NEWLINE# self . assertEqual ( response . status_code , 204 ) #NEWLINE# self . assertTrue ( ( '_auth_user_id' not in self . client . session ) )