#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# basket = create_basket ( empty = True ) #NEWLINE# add_product ( basket , D ( '10.00' ) , 4 ) #NEWLINE# self . order = create_order ( number = '100002' , basket = basket ) #NEWLINE# self . line = self . order . lines . all ( ) [ 0 ] #NEWLINE# ( self . shipped , __ ) = ShippingEventType . objects . get_or_create ( name = 'Shipped' ) #NEWLINE# ( self . returned , __ ) = ShippingEventType . objects . get_or_create ( name = 'Returned' )