<s> from cinderclient . tests . unit import utils <EOL> from cinderclient . tests . unit . v1 import fakes <EOL> cs = fakes . FakeClient ( ) <EOL> class VolumeTransfersTest ( utils . TestCase ) : <EOL> def test_create ( self ) : <EOL> cs . transfers . create ( '<STR_LIT>' ) <EOL> cs . assert_called ( '<STR_LIT:POST>' , '<STR_LIT>' ) <EOL> def test_get ( self ) : <EOL> transfer_id = '<STR_LIT>' <EOL> cs . transfers . get ( transfer_id ) <EOL> cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' % transfer_id ) <EOL> def test_list ( self ) : <EOL> cs . transfers . list ( ) <EOL> cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' ) <EOL> def test_delete ( self ) : <EOL> b = cs . transfers . list ( ) [ <NUM_LIT:0> ] <EOL> b . delete ( ) <EOL> cs . assert_called ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cs . transfers . delete ( '<STR_LIT>' ) <EOL> cs . assert_called ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cs . transfers . delete ( b ) <EOL> cs . assert_called ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def test_accept ( self ) : <EOL> transfer_id = '<STR_LIT>' <EOL> auth_key = '<STR_LIT>' <EOL> cs . transfers . accept ( transfer_id , auth_key ) <EOL> cs . assert_called ( '<STR_LIT:POST>' , '<STR_LIT>' % transfer_id ) </s>
