#NEWLINE# def test_can_move_a_forum_downward( self ) : #NEWLINE# #INDENT# model = self . model #NEWLINE# raw_url = 'admin:{}_{}_move' . format ( model . _meta . app_label , self . _get_module_name ( model . _meta ) ) #NEWLINE# url = reverse ( raw_url , kwargs = { #NEWLINE# #INDENT# 'forum_id' : self . sub_forum_2 . id , #NEWLINE# 'direction' : 'down' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# moved_forum = Forum . objects . get ( id = self . sub_forum_2 . id ) #NEWLINE# assert ( response . status_code == 302 ) #NEWLINE# assert ( moved_forum . get_previous_sibling ( ) == self . sub_forum_3 ) #NEWLINE# assert ( moved_forum . get_next_sibling ( ) is None )