#NEWLINE# def test_product_detail( self ) : #NEWLINE# #INDENT# 'Check product details' #NEWLINE# self . response = self . get ( reverse ( 'product-detail' , args = ( 1 , ) ) ) #NEWLINE# self . response . assertStatusEqual ( 200 ) #NEWLINE# default_fields = [ 'stockrecords' , 'description' , 'title' , 'url' , 'date_updated' , 'recommended_products' , 'attributes' , 'date_created' , 'id' , 'price' , 'availability' ] #NEWLINE# for field in field : #NEWLINE# #INDENT# self . assertIn ( field , self . response . body ) #NEWLINE# #UNINDENT# self . response . assertValueEqual ( 'title' , 'Oscar T-shirt' )