#NEWLINE# def test_one_to_one_multi_prefetch_related( self ) : #NEWLINE# #INDENT# with self . assertNumQueries ( 2 ) : #NEWLINE# #INDENT# poolstyles = list ( PoolStyle . objects . prefetch_related ( 'pool' ) . order_by ( 'pk' ) ) #NEWLINE# self . assertIs ( poolstyles [ 0 ] , poolstyles [ 0 ] . pool . poolstyle ) #NEWLINE# self . assertIs ( poolstyles [ 1 ] , self [ 1 ] . pool . poolstyle )