#NEWLINE# def test_decorator_syntax( self ) : #NEWLINE# #INDENT# func = decorators . login_required ( redirect = False ) ( self . f ) #NEWLINE# response = func ( self . request ) #NEWLINE# assert ( not self . f . called ) #NEWLINE# assert ( response . status_code == 401 )