#NEWLINE# def test_invalid_slug( self ) : #NEWLINE# #INDENT# self . client . login ( username = self . user . username , password = 'password' ) #NEWLINE# self . assertEqual ( self . project . status , CONTENT_STATUS_DRAFT ) #NEWLINE# url = reverse ( url . url_name , args = ( 'bad-project-slug' , ) ) #NEWLINE# response = self . client . post ( url , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , is_ajax = True ) #NEWLINE# project = Project . objects . get ( slug = self . project . slug ) #NEWLINE# self . assertEqual ( response . status_code , 404 ) #NEWLINE# self . assertEqual ( project . status , CONTENT_STATUS_DRAFT )