#NEWLINE# def test_defaults( self ) : #NEWLINE# #INDENT# 'Tests the default value after a product has been created\n        ' #NEWLINE# p = Product . objects . create ( name = 'Product' , slug = 'product' , sku = '4711' , price = 42.0 ) #NEWLINE# self . assertEqual ( p . name , 'Product' ) #NEWLINE# self . assertEqual ( p . slug , 'product' ) #NEWLINE# self . assertEqual ( p . sku , '4711' ) #NEWLINE# self . assertEqual ( p . price , 42.0 ) #NEWLINE# self . assertEqual ( p . effective_price , 42.0 ) #NEWLINE# self . assertEqual ( p . short_description , '' ) #NEWLINE# self . assertEqual ( p . description , '' ) #NEWLINE# self . assertEqual ( len ( p . images . all ( ) ) , 0 ) #NEWLINE# self . assertEqual ( p . meta_title , '<name>' ) #NEWLINE# self . assertEqual ( p . meta_description , '' ) #NEWLINE# self . assertEqual ( p . meta_keywords , '' ) #NEWLINE# self . assertEqual ( len ( p . related_products . all ( ) ) , 0 ) #NEWLINE# self . assertEqual ( len ( p . accessories . all ( ) ) , 0 ) #NEWLINE# self . assertEqual ( p . for_sale , False ) #NEWLINE# self . assertEqual ( p . for_sale_price , 0.0 ) #NEWLINE# self . assertEqual ( p . active , False ) #NEWLINE# self . assertEqual ( p . deliverable , True ) #NEWLINE# self . assertEqual ( p . manual_delivery_time , False ) #NEWLINE# self . assertEqual ( p . delivery_time , None ) #NEWLINE# self . assertEqual ( p . order_time , None ) #NEWLINE# self . assertEqual ( p . ordered_at , None ) #NEWLINE# self . assertEqual ( p . manage_stock_amount , False ) #NEWLINE# self . assertEqual ( p . stock_amount , 0 ) #NEWLINE# self . assertEqual ( p . weight , 0 ) #NEWLINE# self . assertEqual ( p . height , 0 ) #NEWLINE# self . assertEqual ( p . length , 0 ) #NEWLINE# self . assertEqual ( p . width , 0 ) #NEWLINE# self . assertEqual ( p . tax , None ) #NEWLINE# self . assertEqual ( p . sub_type , STANDARD_PRODUCT ) #NEWLINE# self . assertEqual ( p . default_variant , None ) #NEWLINE# self . assertEqual ( p . variants_display_type , LIST ) #NEWLINE# self . assertEqual ( self . parent , None ) #NEWLINE# self . assertEqual ( p . active_name , False ) #NEWLINE# self . assertEqual ( p . active_sku , False ) #NEWLINE# self . assertEqual ( p . active_short_description , False ) #NEWLINE# self . assertEqual ( p . active_description , False ) #NEWLINE# self . assertEqual ( p . active_price , False ) #NEWLINE# self . assertEqual ( p . active_images , False ) #NEWLINE# self . assertEqual ( p . active_related_products , False ) #NEWLINE# self . assertEqual ( p . active_accessories , False ) #NEWLINE# self . assertEqual ( p . active_meta_description , False ) #NEWLINE# self . assertEqual ( p . active_meta_keywords , False )