#NEWLINE# def test_can_filter_users_by_two_roles( self ) : #NEWLINE# #INDENT# self . client . login ( username = self . standard_user . email , password = 'pass' ) #NEWLINE# response = self . get_dashboard ( roles = [ self . mentor . id , self . mentee . id ] ) #NEWLINE# context_users = response . context [ 'listed_users' ] #NEWLINE# self . assertIn ( self . user_1 , context_users ) #NEWLINE# self . assertIn ( self . user_2 , context_users ) #NEWLINE# self . assertIn ( self . user_3 , context_users ) #NEWLINE# self . assertNotIn ( self . standard_user , context_users ) #NEWLINE# self . assertEqual ( len ( context_users ) , 3 )