#NEWLINE# def test_foreignkey_forward( self ) : #NEWLINE# #INDENT# with self . assertNumQueries ( 2 ) : #NEWLINE# #INDENT# books = [ a . first_book for a in Author . objects . prefetch_related ( 'first_book' ) ] #NEWLINE# #UNINDENT# normal_books = [ a . first_book for a in Author . objects . all ( ) ] #NEWLINE# self . assertEqual ( books , normal_books )