def create_purchase_info(record): return strategy.PurchaseInfo( price=prices.FixedPrice( record.price_currency, record.price_excl_tax, D('0.00') # Default to no tax ), availability=availability.StockRequired(record.net_stock_level), stockrecord=record)
def setUp(self): self.availability = availability.StockRequired(0)