#NEWLINE# def test_for_smoke( self ) : #NEWLINE# #INDENT# category = CategoryFactory ( ) #NEWLINE# response = self . submit ( title = 'testing' , category = category ) #NEWLINE# self . assertIsRedirect ( response ) #NEWLINE# self . assertEqual ( Product . objects . count ( ) , 1 )