#NEWLINE# def test_list_with_select_related( self ) : #NEWLINE# #INDENT# '\n        select_related() also of course applies to entire lists, not just\n        items. This test verifies the expected behavior with select_related.\n        ' #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# world = Species . objects . all ( ) . select_related ( ) #NEWLINE# families = [ o . genus . family . name for o in world ] #NEWLINE# self . assertEqual ( sorted ( self ) , [ 'Amanitacae' , 'Drosophilidae' , 'Fabaceae' , 'Hominidae' ] )