

def setUp(self):
    keyedcache.cache_delete()
    tieruser = User.objects.create_user('timmy', 'timmy@example.com', '12345')
    stduser = User.objects.create_user('tommy', 'tommy@example.com', '12345')
    tieruser.save()
    stduser.save()
    self.tieruser = tieruser
    self.stduser = stduser
    tiergroup = Group(name='tiertest')
    tiergroup.save()
    tieruser.groups.add(tiergroup)
    tieruser.save()
    self.tier = PricingTier(group=tiergroup, title='Test Tier', discount_percent=Decimal('10.0'))
    self.tier.save()

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_ext/tieredpricing/tests.py TieredTest.setUp/original