#NEWLINE# def test13c_count( self ) : #NEWLINE# #INDENT# 'Testing `Count` aggregate with `.values()`.  See #15305.' #NEWLINE# qs = Location . objects . filter ( id = 5 ) . annotate ( num_cities = Count ( 'city' ) ) . values ( 'id' , 'point' , 'num_cities' ) #NEWLINE# self . assertEqual ( 1 , len ( qs ) ) #NEWLINE# self . assertEqual ( 2 , qs [ 0 ] [ 'num_cities' ] ) #NEWLINE# self . assertTrue ( isinstance ( qs [ 0 ] [ 'point' ] , GEOSGeometry ) )