<s> from tests . test_helper import * <EOL> from datetime import date <EOL> class TestDisbursement ( unittest . TestCase ) : <EOL> def test_constructor ( self ) : <EOL> attributes = { <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT:id>" : "<STR_LIT>" , <EOL> "<STR_LIT:status>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT:id>" : "<STR_LIT>" , <EOL> "<STR_LIT:status>" : "<STR_LIT>" <EOL> } , <EOL> } , <EOL> "<STR_LIT:id>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : date ( <NUM_LIT> , <NUM_LIT:4> , <NUM_LIT:10> ) , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> } <EOL> disbursement = Disbursement ( None , attributes ) <EOL> self . assertEquals ( disbursement . id , "<STR_LIT>" ) <EOL> self . assertEquals ( disbursement . amount , Decimal ( "<STR_LIT>" ) ) <EOL> self . assertEquals ( disbursement . transaction_ids , [ "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> self . assertEquals ( disbursement . merchant_account . master_merchant_account . id , "<STR_LIT>" ) </s>
