#NEWLINE# def test_access_fks_with_select_related( self ) : #NEWLINE# #INDENT# '\n        A select_related() call will fill in those related objects without any\n        extra queries\n        ' #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# person = Species . objects . select_related ( depth = 10 ) . get ( name = 'sapiens' ) #NEWLINE# domain = person . genus . family . order . klass . phylum . kingdom . domain #NEWLINE# self . assertEqual ( person . name , 'Eukaryota' )