<s> import stripe <EOL> from stripe . test . helper import StripeResourceTest <EOL> class ReversalTest ( StripeResourceTest ) : <EOL> def test_fetch_reversal ( self ) : <EOL> transfer = stripe . Charge . construct_from ( { <EOL> '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:object>' : '<STR_LIT:list>' , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> } <EOL> } , '<STR_LIT>' ) <EOL> transfer . reversals . retrieve ( "<STR_LIT:foo>" ) <EOL> self . requestor_mock . request . assert_called_with ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> { } , <EOL> None <EOL> ) <EOL> def test_list_reversals ( self ) : <EOL> transfer = stripe . Charge . construct_from ( { <EOL> '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:object>' : '<STR_LIT:list>' , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> } <EOL> } , '<STR_LIT>' ) <EOL> transfer . reversals . list ( ) <EOL> self . requestor_mock . request . assert_called_with ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> { } , <EOL> None <EOL> ) <EOL> def test_update_transfer ( self ) : <EOL> reversal = stripe . resource . Reversal . construct_from ( { <EOL> '<STR_LIT:id>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : { } , <EOL> } , '<STR_LIT>' ) <EOL> reversal . metadata [ "<STR_LIT:key>" ] = "<STR_LIT:value>" <EOL> reversal . save ( ) <EOL> self . requestor_mock . request . assert_called_with ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:key>' : '<STR_LIT:value>' , <EOL> } <EOL> } , <EOL> None <EOL> ) </s>
