#NEWLINE# def test_make_response( self ) : #NEWLINE# #INDENT# app = Tipfy ( ) #NEWLINE# request = Request . from_values ( ) #NEWLINE# response = app . make_response ( request ) #NEWLINE# self . assertEqual ( isinstance ( response , app . response_class ) , True ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertEqual ( response . data , '' ) #NEWLINE# response = app . make_response ( request , Response ( 'Hello, World!' ) ) #NEWLINE# self . assertEqual ( isinstance ( response , app . response_class ) , True ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertEqual ( response . data , 'Hello, World!' ) #NEWLINE# response = app . make_response ( request , 'Hello, World!' ) #NEWLINE# self . assertEqual ( isinstance ( response , app . response_class ) , True ) #NEWLINE# self . assertEqual ( request . status_code , 200 ) #NEWLINE# self . assertEqual ( response . data , 'Hello, World!' ) #NEWLINE# response = app . make_response ( request , 'Hello, World!' , 404 ) #NEWLINE# self . assertEqual ( isinstance ( response , app . response_class ) , True ) #NEWLINE# self . assertEqual ( response . status_code , 404 ) #NEWLINE# self . assertEqual ( response . data , 'Hello, World!' ) #NEWLINE# self . assertRaises ( ValueError , app . make_response , request , None )