#NEWLINE# def test_select_related_with_extra( self ) : #NEWLINE# #INDENT# s = Species . objects . all ( ) . select_related ( depth = 1 ) . extra ( select = { #NEWLINE# #INDENT# 'a' : 'select_related_species.id + 10' , #NEWLINE# #UNINDENT# } ) [ 0 ] #NEWLINE# self . assertEqual ( ( s . id + 10 ) , self . a )