@@ -511,7 +511,7 @@ def test_accounts_transfer(self):
511
511
card = balanced .Card (** INTERNATIONAL_CARD ).save ()
512
512
513
513
order .debit_from (source = card , amount = 1234 )
514
- sweep_account = merchant .account
514
+ sweep_account = merchant .sweep_account
515
515
self .assertEqual (sweep_account .balance , 0 )
516
516
account_credit = sweep_account .credit (amount = 1234 , order = order .href ,
517
517
appears_on_statement_as = 'Payout' )
@@ -522,7 +522,7 @@ def test_accounts_transfer(self):
522
522
def test_accounts_transfer_from_multiple_orders (self ):
523
523
merchant = balanced .Customer ().save ()
524
524
card = balanced .Card (** INTERNATIONAL_CARD ).save ()
525
- sweep_account = merchant .account
525
+ sweep_account = merchant .sweep_account
526
526
self .assertEqual (sweep_account .balance , 0 )
527
527
amount = 1234
528
528
@@ -543,7 +543,7 @@ def test_settlement(self):
543
543
card = balanced .Card (** INTERNATIONAL_CARD ).save ()
544
544
545
545
order .debit_from (source = card , amount = 1234 )
546
- sweep_account = merchant .account
546
+ sweep_account = merchant .sweep_account
547
547
account_credit = sweep_account .credit (amount = 1234 , order = order .href ,
548
548
appears_on_statement_as = 'Payout' )
549
549
self .assertEqual (sweep_account .balance , 1234 )
@@ -570,7 +570,7 @@ def test_reverse_settlement(self):
570
570
card = balanced .Card (** INTERNATIONAL_CARD ).save ()
571
571
572
572
order .debit_from (source = card , amount = 1234 )
573
- sweep_account = merchant .account
573
+ sweep_account = merchant .sweep_account
574
574
account_credit = sweep_account .credit (amount = 1234 , order = order .href ,
575
575
appears_on_statement_as = 'Payout' )
576
576
self .assertEqual (sweep_account .balance , 1234 )
@@ -600,7 +600,7 @@ def test_reverse_settlement_with_negative_account_balance(self):
600
600
card = balanced .Card (** INTERNATIONAL_CARD ).save ()
601
601
602
602
order .debit_from (source = card , amount = 1234 )
603
- sweep_account = merchant .account
603
+ sweep_account = merchant .sweep_account
604
604
account_credit = sweep_account .credit (amount = 1234 , order = order .href ,
605
605
appears_on_statement_as = 'Payout' )
606
606
bank_account = balanced .BankAccount (
0 commit comments