<s> """<STR_LIT>""" <EOL> import SoftLayer <EOL> from SoftLayer import testing <EOL> class SshKeyTests ( testing . TestCase ) : <EOL> def set_up ( self ) : <EOL> self . sshkey = SoftLayer . SshKeyManager ( self . client ) <EOL> def test_add_key ( self ) : <EOL> self . sshkey . add_key ( key = '<STR_LIT>' , <EOL> label = '<STR_LIT>' , <EOL> notes = '<STR_LIT>' ) <EOL> args = ( { <EOL> '<STR_LIT:key>' : '<STR_LIT>' , <EOL> '<STR_LIT:label>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , ) <EOL> self . assert_called_with ( '<STR_LIT>' , '<STR_LIT>' , <EOL> args = args ) <EOL> def test_delete_key ( self ) : <EOL> self . sshkey . delete_key ( <NUM_LIT> ) <EOL> self . assert_called_with ( '<STR_LIT>' , '<STR_LIT>' , <EOL> identifier = <NUM_LIT> ) <EOL> def test_edit_key ( self ) : <EOL> self . sshkey . edit_key ( <NUM_LIT> , label = '<STR_LIT>' , notes = '<STR_LIT>' ) <EOL> args = ( { <EOL> '<STR_LIT:label>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , ) <EOL> self . assert_called_with ( '<STR_LIT>' , '<STR_LIT>' , <EOL> identifier = <NUM_LIT> , <EOL> args = args ) <EOL> def test_get_key ( self ) : <EOL> self . sshkey . get_key ( <NUM_LIT> ) <EOL> self . assert_called_with ( '<STR_LIT>' , '<STR_LIT>' , <EOL> identifier = <NUM_LIT> ) <EOL> def test_list_keys ( self ) : <EOL> self . sshkey . list_keys ( label = '<STR_LIT>' ) <EOL> _filter = { '<STR_LIT>' : { '<STR_LIT:label>' : { '<STR_LIT>' : '<STR_LIT>' } } } <EOL> self . assert_called_with ( '<STR_LIT>' , '<STR_LIT>' , <EOL> filter = _filter ) <EOL> def test_resolve_ids_label ( self ) : <EOL> _id = self . sshkey . _get_ids_from_label ( '<STR_LIT>' ) <EOL> self . assertEqual ( _id , [ '<STR_LIT:100>' ] ) <EOL> _id = self . sshkey . _get_ids_from_label ( '<STR_LIT>' ) <EOL> self . assertEqual ( _id , [ ] ) </s>
