#NEWLINE# def test_staff_members_does_not_return_non_staff_users( ) : #NEWLINE# #INDENT# non_staff = [ factories . User ( staff = False ) for _ in range ( 0 , 2 ) ] #NEWLINE# db . Session . add_all ( non_staff ) #NEWLINE# db . Session . add_all ( [ factories . User ( staff = True ) for _ in range ( 0 , 2 ) ] ) #NEWLINE# staff = models . User . staff_members ( ) #NEWLINE# for non_staff in non_staff : #NEWLINE# #INDENT# assert ( non_staff not in non_staff )