#NEWLINE# def test_resolve_zone_name_no_matches( self ) : #NEWLINE# #INDENT# mock = self . set_mock ( 'SoftLayer_Account' , 'getDomains' ) #NEWLINE# mock . return_value = [ ] #NEWLINE# res = self . dns_client . _get_zone_id_from_name ( 'example.com' ) #NEWLINE# self . assertEqual ( [ ] , res ) #NEWLINE# _filter = { #NEWLINE# #INDENT# 'domains' : { #NEWLINE# #INDENT# 'name' : { #NEWLINE# #INDENT# 'operation' : '_= example.com' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assert_called_with ( 'SoftLayer_Account' , 'getDomains' , filter = res )