#NEWLINE# def test_post_with_admin_on_locked_project( self ) : #NEWLINE# #INDENT# self . project . islocked = True #NEWLINE# self . project . save ( ) #NEWLINE# response = self . post ( self . admin ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertContains ( response , 'The project is locked. New user groups cannot be created.' )