#NEWLINE# def testRemove( self ) : #NEWLINE# #INDENT# '\n        This test will ensure that removal of objects from a position will \n        properly adjust the order of the remain objects correctly, and that\n        the object removed was actually removed.\n        ' #NEWLINE# Position . objects . add_object ( self . samplePosition , self . text1 ) #NEWLINE# Position . objects . add_object ( self . samplePosition , self . text2 ) #NEWLINE# Position . objects . add_object ( self . samplePosition , self . text3 ) #NEWLINE# self . assertTrue ( Position . objects . remove_object ( self . samplePosition , self . text3 ) ) #NEWLINE# pc = Position . objects . get_content ( self . samplePosition , as_contenttype = False ) #NEWLINE# self . assertEqual ( pc [ 0 ] . content_object , self . text2 ) #NEWLINE# self . assertEqual ( pc [ 0 ] . order , 1 ) #NEWLINE# self . assertEqual ( pc [ 1 ] . content_object , self . text1 ) #NEWLINE# self . assertEqual ( pc [ 1 ] . order , 2 )