

def setUp(self):
    User = get_user_model()
    self.user = User.objects.create_user(username='testuser')
    self.user.save()
    self.customer = Customer.objects.create(stripe_id='cus_xxxxxxxxxxxxxxx', user=self.user)

dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/tests/test_event.py TestEventMethods.setUp/original