#NEWLINE# def test_etag_miss( self ) : #NEWLINE# #INDENT# '\n        Check the ETag header is updated upon miss.\n        \n        ' #NEWLINE# etag = self . unique ( ) #NEWLINE# content = self . unique ( ) #NEWLINE# def condition_etag( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# return etag #NEWLINE# #UNINDENT# self . assertViewBehavior ( { #NEWLINE# #INDENT# 'condition_etag' : condition_etag , #NEWLINE# 'get' : content , #NEWLINE# #UNINDENT# } , headers = { #NEWLINE# #INDENT# 'HTTP_IF_NONE_MATCH' : self . format_etag ( self . unique ( ) ) , #NEWLINE# #UNINDENT# } , status_code = 200 , content = content , headers_exact = { #NEWLINE# #INDENT# 'ETag' : self . format_etag ( etag ) , #NEWLINE# #UNINDENT# } )