<s> from tests . test_helper import * <EOL> from braintree . test . nonces import Nonces <EOL> class TestTestHelper ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . transaction = Transaction . sale ( { <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT:100>" <EOL> } , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT:true>" <EOL> } <EOL> } ) . transaction <EOL> def test_settle_transaction_settles_transaction ( self ) : <EOL> TestHelper . settle_transaction ( self . transaction . id ) <EOL> self . assertEquals ( Transaction . Status . Settled , Transaction . find ( self . transaction . id ) . status ) <EOL> def test_settlement_confirm_transaction ( self ) : <EOL> TestHelper . settlement_confirm_transaction ( self . transaction . id ) <EOL> self . assertEquals ( Transaction . Status . SettlementConfirmed , Transaction . find ( self . transaction . id ) . status ) <EOL> def test_settlement_decline_transaction ( self ) : <EOL> TestHelper . settlement_decline_transaction ( self . transaction . id ) <EOL> self . assertEquals ( Transaction . Status . SettlementDeclined , Transaction . find ( self . transaction . id ) . status ) </s>
