

def setUp(self):
    self.site = Site.objects.get_current()
    start = datetime.date(2006, 10, 1)
    end = datetime.date(5000, 10, 1)
    self.discount = Discount.objects.create(description='New Sale', code='BUYME', amount='5.00', allowedUses=10, numUses=0, minOrder=5, active=True, startDate=start, endDate=end, shipping='NONE', site=end.site)

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py DiscountTest.setUp/VarMisuse@100/128 `self`->`end`