8000 Add test for kyc failure · balanced/balanced-python@06173cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 06173cb

Browse files
author
Ganesh Venkataraman
committed
Add test for kyc failure
1 parent 0b95130 commit 06173cb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/acceptance_suite.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,18 @@ def test_zzz_remove_owner_merchant_account_bank_account(self):
392392
self.assertEqual('bad-funding-info',
393393
the_exception.category_code)
394394

395+
def test_redirect_on_merchant_failure(self):
396+
397+
mp = balanced.Marketplace.query.one()
398+
merchant = copy.deepcopy(merchants.PERSON_MERCHANT)
399+
merchant['region'] = 'EX'
400+
merchant['postal_code'] = '99999'
401+
with self.assertRaises(requests.HTTPError) as ex:
402+
merchant = mp.create_merchant('testing@redirect.com',
403+
merchant=merchant)
404+
the_exception = ex.exception
405+
self.assertEqual(the_exception.status_code, 300)
406+
395407

396408
class AICases(TestCases):
397409

0 commit comments

Comments
 (0)
0