def test_anonymous_purchase_with_existing_customer_account(self, *_): email = email_generator.next() # 1. create an account on balanced payload = merchant_fixtures.balanced_customer_payload(email) customer = balanced.Customer( email=email, merchant=payload['customer'], ) customer.save() # 2. anonymous purchase using this account should work. self.test_anonymous_purchase()
def _merchant_payload(self, email): return merchant.balanced_customer_payload(email)