#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# self . client . login ( username = 'admin' , password = 'admin' ) #NEWLINE# self . user = User . objects . get ( username = 'admin' ) #NEWLINE# self . request = DummyRequest ( user = self . user ) #NEWLINE# self . dt1 = DeliveryTime . objects . create ( min = 3 , max = 4 , unit = DELIVERY_TIME_UNIT_DAYS ) #NEWLINE# self . dt2 = DeliveryTime . objects . create ( min = 1 , max = 2 , unit = DELIVERY_TIME_UNIT_DAYS ) #NEWLINE# self . dt3 = DeliveryTime . objects . create ( min = 5 , max = 6 , unit = DELIVERY_TIME_UNIT_DAYS ) #NEWLINE# self . sm1 = ShippingMethod . objects . create ( name = 'Standard' , active = True , price = 1 , delivery_time = self . dt1 , priority = 1 ) #NEWLINE# self . sm2 = ShippingMethod . objects . create ( name = 'Express' , active = True , delivery_time = self . dt2 , priority = 2 ) #NEWLINE# self . p1 = Product . objects . create ( name = 'Product 1' , slug = 'p1' , price = 9 , weight = 6.0 , active = True ) #NEWLINE# self . p2 = Product . objects . create ( name = 'Product 2' , slug = 'p2' , price = 11 , weight = 12.0 , active = True ) #NEWLINE# cart = cart_utils . get_cart ( self . request ) #NEWLINE# if cart : #NEWLINE# #INDENT# cart . delete ( )