#NEWLINE# def test_create_custom_save_article( self ) : #NEWLINE# #INDENT# '\n        Creates a new article using a custom form class with a save method\n        that alters the slug entered.\n        ' #NEWLINE# view_url = '/views/create_update/create_custom/article/' #NEWLINE# response = self . client . post ( view_url , { #NEWLINE# #INDENT# 'title' : 'Test Article' , #NEWLINE# 'slug' : 'this-should-get-replaced' , #NEWLINE# 'author' : 1 , #NEWLINE# 'date_created' : datetime . datetime ( 2007 , 6 , 25 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( response , '/views/create_update/view/article/some-other-slug/' , target_status_code = 404 )