<s> from __future__ import absolute_import <EOL> from django . views . decorators . http import condition , etag , last_modified <EOL> from django . http import HttpResponse <EOL> from . tests import FULL_RESPONSE , LAST_MODIFIED , ETAG <EOL> def index ( request ) : <EOL> return HttpResponse ( FULL_RESPONSE ) <EOL> index = condition ( lambda r : ETAG , lambda r : LAST_MODIFIED ) ( index ) <EOL> def last_modified_view1 ( request ) : <EOL> return HttpResponse ( FULL_RESPONSE ) <EOL> last_modified_view1 = condition ( last_modified_func = lambda r : LAST_MODIFIED ) ( last_modified_view1 ) <EOL> def last_modified_view2 ( request ) : <EOL> return HttpResponse ( FULL_RESPONSE ) <EOL> last_modified_view2 = last_modified ( lambda r : LAST_MODIFIED ) ( last_modified_view2 ) <EOL> def etag_view1 ( request ) : <EOL> return HttpResponse ( FULL_RESPONSE ) <EOL> etag_view1 = condition ( etag_func = lambda r : ETAG ) ( etag_view1 ) <EOL> def etag_view2 ( request ) : <EOL> return HttpResponse ( FULL_RESPONSE ) <EOL> etag_view2 = etag ( lambda r : ETAG ) ( etag_view2 ) </s>
