File: test_successful_result.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 (9 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
from tests.test_helper import *

class TestSuccessfulResult(unittest.TestCase):
    def test_is_success(self):
        self.assertTrue(SuccessfulResult({}).is_success)

    def test_attributes_are_exposed(self):
        result = SuccessfulResult({"name": "drew"})
        self.assertEqual("drew", result.name)