#NEWLINE# def test_should_add_default_etag_value( self ) : #NEWLINE# #INDENT# class TestView ( views . APIView ) : #NEWLINE# #INDENT# @ etag ( ) #NEWLINE# def get( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# return Response ( 'Response from method' ) #NEWLINE# #UNINDENT# #UNINDENT# view_instance = TestView ( ) #NEWLINE# response = view_instance . get ( request = self . request ) #NEWLINE# expected_etag_value = default_etag_func ( ) #NEWLINE# self . assertEqual ( response . get ( 'Etag' ) , quote_etag ( expected_etag_value ) ) #NEWLINE# self . assertEqual ( response . data , 'Response from method' )