#NEWLINE# def testProjectListFiltered( self ) : #NEWLINE# #INDENT# self . login_user ( self . user ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# self . assertEquals ( response . status_code , 200 ) #NEWLINE# projects = list ( response . context [ 'form' ] . fields [ 'project' ] . queryset ) #NEWLINE# self . assertTrue ( ( self . project in projects ) ) #NEWLINE# self . assertFalse ( ( self . project2 in projects ) ) #NEWLINE# self . project . status . enable_timetracking = False #NEWLINE# self . project . status . save ( ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# projects = list ( response . context [ 'form' ] . fields [ 'project' ] . queryset ) #NEWLINE# self . assertTrue ( ( self . project not in projects ) )