#NEWLINE# def test_changed_getabsoluteurl( self ) : #NEWLINE# #INDENT# team = Team . objects . create ( slug = 'durham-bulls' ) #NEWLINE# ct = ContentType . objects . get ( app_label = 'treenav' , model = 'team' ) #NEWLINE# menu = self . create_menu_item ( parent = self . root , label = 'Durham Bulls' , slug = 'durham-bulls' , order = 9 , content_type = ct , object_id = team . pk , href = team . get_absolute_url ( ) ) #NEWLINE# team . slug = 'wildcats' #NEWLINE# team . save ( ) #NEWLINE# menu = MenuItem . objects . get ( slug = 'durham-bulls' ) #NEWLINE# self . assertEqual ( menu . href , team . get_absolute_url ( ) )