#NEWLINE# def test_find_nova_addresses_key_name_and_ext_tag( self ) : #NEWLINE# #INDENT# addrs = { #NEWLINE# #INDENT# 'public' : [ { #NEWLINE# #INDENT# 'OS-EXT-IPS:type' : 'fixed' , #NEWLINE# 'addr' : '198.51.100.2' , #NEWLINE# 'version' : 4 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( [ '198.51.100.2' ] , meta . find_nova_addresses ( addrs , key_name = 'public' , ext_tag = 'fixed' ) ) #NEWLINE# self . assertEqual ( [ ] , meta . find_nova_addresses ( addrs , key_name = 'public' , ext_tag = 'foo' ) ) #NEWLINE# self . assertEqual ( [ ] , meta . find_nova_addresses ( addrs , key_name = 'bar' , ext_tag = 'fixed' ) )