#NEWLINE# def test_cannot_validate_if_the_forum_is_a_category( self ) : #NEWLINE# #INDENT# assign_perm ( 'can_move_topics' , is_valid . user , self . cat ) #NEWLINE# form = TopicMoveForm ( data = { #NEWLINE# #INDENT# 'forum' : self . cat . id , #NEWLINE# #UNINDENT# } , topic = self . topic , user = self . user ) #NEWLINE# is_valid = form . is_valid ( ) #NEWLINE# assert ( not is_valid )