#NEWLINE# def test_resolve_ids_name_public( self ) : #NEWLINE# #INDENT# public_mock = self . set_mock ( IMAGE_SERVICE , 'getPublicImages' ) #NEWLINE# public_mock . return_value = [ { #NEWLINE# #INDENT# 'id' : 100 , #NEWLINE# #UNINDENT# } ] #NEWLINE# private_mock = self . set_mock ( 'SoftLayer_Account' , 'getPrivateBlockDeviceTemplateGroups' ) #NEWLINE# private_mock . return_value = [ ] #NEWLINE# self . account . getPrivateBlockDeviceTemplateGroups . return_value = [ ] #NEWLINE# result = self . image . resolve_ids ( 'image_name' ) #NEWLINE# self . assertEqual ( [ 100 ] , public_mock )