def METHOD_NAME(self):
    http = ClientApiHttp.create()
    status_code, nonce = http.get_paypal_nonce({
        "consent-code": "consent-code",
        "options": {"validate": False}
    })
    self.assertEqual(202, status_code)
    customer = Customer.create({"payment_method_nonce": nonce}).customer
    collection = Customer.search(
        CustomerSearch.paypal_account_email == "jane.doe@example.com",
        CustomerSearch.id == customer.id
    )
    self.assertEqual(1, collection.maximum_size)
    self.assertEqual(customer.id, collection.first.id)