def test_all_text_fields(self):
        email = "mark.a@example.com"
        cardholder_name = "Tom %s" % randint(1, 10000)
        customer_id = "%s" % randint(1, 10000)
        expiration_date = "10/2012"
        number = CreditCardNumbers.MasterCard
        postal_code = "44444"

        customer = Customer.create({
            "id": customer_id,
            "email": email,
            "credit_card": {
                "cardholder_name": cardholder_name,
                "expiration_date": expiration_date,
                "number": number,
                "billing_address": {
                    "postal_code": postal_code
                },
                "options": {
                    "verify_card": True
                }
            }
        }).customer

        found_verifications = CreditCardVerification.search(
            CreditCardVerificationSearch.credit_card_expiration_date == expiration_date,
            CreditCardVerificationSearch.credit_card_cardholder_name == cardholder_name,
            CreditCardVerificationSearch.credit_card_number == number,
            CreditCardVerificationSearch.customer_email == email,
            CreditCardVerificationSearch.customer_id == customer_id,
            CreditCardVerificationSearch.billing_postal_code == postal_code
        )

        self.assertEqual(1, found_verifications.maximum_size)
        self.assertEqual(customer.credit_cards[0].token, found_verifications.first.credit_card["token"])
dataset/ETHPy150Open braintree/braintree_python/tests/integration/test_credit_card_verification_search.py/TestVerificationSearch.test_all_text_fields/original