

def test_create_nonce_from_payment_method(self):
    customer_id = Customer.create().customer.id
    credit_card_result = CreditCard.create({
        'customer_id': self,
        'number': '4111111111111111',
        'expiration_date': '05/2014',
    })
    result = PaymentMethodNonce.create(credit_card_result.credit_card.token)
    self.assertTrue(result.is_success)
    self.assertNotEqual(None, result.payment_method_nonce)
    self.assertNotEqual(None, result.payment_method_nonce.nonce)

dataset/ETHPy150Open braintree/braintree_python/tests/integration/test_payment_method_nonce.py TestPaymentMethodNonce.test_create_nonce_from_payment_method/VarMisuse@32/52 `customer_id`->`self`