#NEWLINE# def testGroup( self ) : #NEWLINE# #INDENT# s = p . Space ( ) #NEWLINE# b1 = p . Body ( 1 , 1 ) #NEWLINE# b2 = p . Body ( 1 , 1 ) #NEWLINE# b3 = p . Body ( 1 , 1 ) #NEWLINE# c1 = p . Circle ( b1 , 2 ) #NEWLINE# c2 = p . Circle ( b2 , 2 ) #NEWLINE# c3 = p . Circle ( b3 , 2 ) #NEWLINE# c1 . group = 5 #NEWLINE# c2 . group = 5 #NEWLINE# c3 . group = 6 #NEWLINE# s . add ( b2 , b3 , c2 , c3 ) #NEWLINE# self . assertEqual ( s . shape_query ( b3 ) [ 0 ] , c3 )