File: test_payment_method_nonce.py

package info (click to toggle)
python-braintree 4.31.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,576 kB
  • sloc: python: 28,946; makefile: 9; sh: 8
file content (10 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from tests.test_helper import *

class TestPaymentMethodNonce(unittest.TestCase):
    def test_finding_empty_id_raises_not_found_exception(self):
        with self.assertRaises(NotFoundError):
            PaymentMethodNonce.find(" ")

    def test_finding_None_id_raises_not_found_exception(self):
        with self.assertRaises(NotFoundError):
            PaymentMethodNonce.find(None)