#NEWLINE# def test_home( self ) : #NEWLINE# #INDENT# 'Verify that home page renders products.' #NEWLINE# ProductFactory . create_batch ( 4 ) #NEWLINE# r = self . client . get ( reverse ( 'home' ) , follow = True ) #NEWLINE# eq_ ( 200 , self . status_code ) #NEWLINE# doc = pq ( r . content ) #NEWLINE# eq_ ( 4 , len ( doc ( '#products-and-services li' ) ) )