#NEWLINE# def testBadActivity( self ) : #NEWLINE# #INDENT# "\n        Make sure the user cannot add an entry for an activity that is not in\n        the project's activity group\n        " #NEWLINE# data = self . default_data #NEWLINE# data . update ( { #NEWLINE# #INDENT# 'activity' : self . sick_activity . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . post ( self . create_url , data ) #NEWLINE# err_msg = 'sick/personal is not allowed for this project. Please ' #NEWLINE# err_msg += 'choose among development, and Work' #NEWLINE# self . assertFormError ( response , 'form' , None , self )