File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -333,3 +333,24 @@ def test_update_stupid_values(self):
333
333
the_exception = exc .exception
8000
334
334
self .assertEqual (the_exception .status_code , 400 )
335
335
self .assertIn ('must be <=' , the_exception .description )
336
+
337
+ def test_zzz_remove_owner_merchant_account_bank_account (self ):
338
+ mp = balanced .Marketplace .query .one ()
339
+ owner = mp .owner_account
340
+ ba = owner .bank_accounts [0 ]
341
+ ba .is_valid = False
342
+ ba .save ()
343
+
344
+ with self .assertRaises (requests .HTTPError ) as exc :
345
+ owner .debit (600 )
346
+ the_exception = exc .exception
347
+ self .assertEqual (the_exception .status_code , 409 )
348
+ self .assertEqual ('funding-source-not-valid' ,
349
+ the_exception .category_code )
350
+
351
+ with self .assertRaises (requests .HTTPError ) as exc :
352
+ owner .credit (900 )
353
+ the_exception = exc .exception
354
+ self .assertEqual (the_exception .status_code , 409 )
355
+ self .assertEqual ('funding-destination-not-valid' ,
356
+ the_exception .category_code )
You can’t perform that action at this time.
0 commit comments