#NEWLINE# def test_marks_parent_forums_as_read_when_marking_a_topic_as_read( self ) : #NEWLINE# #INDENT# new_topic = create_topic ( forum = self . forum_2_child_2 , poster = self . u1 ) #NEWLINE# PostFactory . create ( topic = new_topic , poster = self . u1 ) #NEWLINE# self . tracks_handler . mark_topic_read ( new_topic , self . u2 ) #NEWLINE# assert ( list ( self . tracks_handler . get_unread_forums ( [ self . forum_2_child_2 , self . forum_2 , self . top_level_cat_1 ] , self . u2 ) ) == [ ] ) #NEWLINE# assert ( ForumReadTrack . objects . filter ( user = self . u2 ) . count ( ) == 3 ) #NEWLINE# assert ( not TopicReadTrack . objects . filter ( user = self . u2 ) . exists ( ) )