#NEWLINE# def test_active_url( self ) : #NEWLINE# #INDENT# team = Team . objects . create ( slug = 'durham-bulls' ) #NEWLINE# ct = ContentType . objects . get ( app_label = 'treenav' , model = 'team' ) #NEWLINE# self . child . object_id = team . pk #NEWLINE# self . child . content_type = ct #NEWLINE# self . child . content_object = team #NEWLINE# self . child . save ( ) #NEWLINE# item = Item ( self . child ) #NEWLINE# active_item = item . set_active ( team . get_absolute_url ( ) ) #NEWLINE# self . assertEqual ( active_item . node , self . child )