#NEWLINE# def test_timesheet_view_no_permission( self ) : #NEWLINE# #INDENT# 'A regular user should not see the user menu' #NEWLINE# self . login_user ( self . user ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# self . assertTrue ( self . status_code , 200 ) #NEWLINE# self . assertFalse ( ( 'user' in response . context [ 'year_month_form' ] . fields ) )