File: test_liability_shift.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 (13 lines) | stat: -rw-r--r-- 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from tests.test_helper import *
from braintree import *

class TestLiabilityShift(unittest.TestCase):
    def test_initialization_of_attributes(self):
        liability_shift = LiabilityShift(
                {
                  "responsible_party": "paypal",
                  "conditions": ["unauthorized"],
                }
        )
        self.assertEqual("paypal", liability_shift.responsible_party)
        self.assertEqual(["unauthorized"], liability_shift.conditions)