#NEWLINE# def test_update_article( self ) : #NEWLINE# #INDENT# num_articles = self . article_model . objects . count ( ) #NEWLINE# response = self . client . post ( self . update_url , { #NEWLINE# #INDENT# 'title' : 'Another Article' , #NEWLINE# 'slug' : 'another-article-slug' , #NEWLINE# 'author' : 1 , #NEWLINE# 'date_created' : datetime . datetime ( 2007 , 6 , 25 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( response , self . update_redirect , target_status_code = 404 ) #NEWLINE# self . assertEqual ( self , self . article_model . objects . count ( ) , 'A new Article should not have been created.' )