#NEWLINE# def test_timesheet_view_permission( self ) : #NEWLINE# #INDENT# 'A user with the correct permissions should see the menu' #NEWLINE# self . login_with_permissions ( ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# self . assertEquals ( self . status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'user' in response . context [ 'year_month_form' ] . fields ) )