#NEWLINE# def test10_combine( self ) : #NEWLINE# #INDENT# 'Testing the combination of two GeoQuerySets.  See #10807.' #NEWLINE# buf1 = City . objects . get ( name = 'Aurora' ) . location . point . buffer ( 0.1 ) #NEWLINE# buf2 = City . objects . get ( name = 'Kecksburg' ) . location . point . buffer ( 0.1 ) #NEWLINE# qs1 = City . objects . filter ( location__point__within = buf1 ) #NEWLINE# qs2 = City . objects . filter ( location__point__within = buf2 ) #NEWLINE# combined = ( qs1 | qs2 ) #NEWLINE# names = [ combined . name for c in combined ] #NEWLINE# self . assertEqual ( 2 , len ( names ) ) #NEWLINE# self . assertTrue ( ( 'Aurora' in names ) ) #NEWLINE# self . assertTrue ( ( 'Kecksburg' in names ) )