#NEWLINE# def test_get_purchase( self ) : #NEWLINE# #INDENT# account_obj = AccountFactory . create ( ) #NEWLINE# wallet_obj = WalletFactory . create ( owner_id = account_obj . id ) #NEWLINE# WalletTrxFactory . create ( wallet = wallet_obj , amount = Money ( 1000 , 'SEK' ) , trx_status = TrxStatus . FINALIZED ) #NEWLINE# product_obj1 = ProductFactory . create ( code = '1337733113370' , name = 'Billys Original' , price = Money ( 13 , 'SEK' ) ) #NEWLINE# products = [ ( product_obj1 . id , 3 ) ] #NEWLINE# purchase_obj = api . purchase ( account_obj . id , product_obj1 ) #NEWLINE# obj = api . get_purchase ( purchase_obj . id ) #NEWLINE# self . assertIsNotNone ( obj )