8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b95130 commit 06173cbCopy full SHA for 06173cb
tests/acceptance_suite.py
@@ -392,6 +392,18 @@ def test_zzz_remove_owner_merchant_account_bank_account(self):
392
self.assertEqual('bad-funding-info',
393
the_exception.category_code)
394
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
407
408
class AICases(TestCases):
409
0 commit comments