File: test_partner_merchant.py

package info (click to toggle)
python-braintree 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,376 kB
  • ctags: 1,998
  • sloc: python: 13,634; makefile: 73; sh: 8
file content (15 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from tests.test_helper import *

class TestPartnerMerchant(unittest.TestCase):
    def test_representation(self):
        merchant = PartnerMerchant(None, {"partner_merchant_id": "abc123",
                                          "private_key": "my_private_key",
                                          "public_key": "my_public_key",
                                          "merchant_public_id": "foobar",
                                          "client_side_encryption_key": "cse_key"})
        self.assertTrue("partner_merchant_id: 'abc123'" in repr(merchant))
        self.assertTrue("public_key: 'my_public_key'" in repr(merchant))
        self.assertTrue("merchant_public_id: 'foobar'" in repr(merchant))
        self.assertTrue("client_side_encryption_key: 'cse_key'" in repr(merchant))

        self.assertFalse("private_key: 'my_private_key'" in repr(merchant))