#NEWLINE# def test_transform_by_regex( self ) : #NEWLINE# #INDENT# resource_config = { #NEWLINE# #INDENT# 'regex' : 'm(1|2)\\.nano' , #NEWLINE# #UNINDENT# } #NEWLINE# flavor_id = types . FlavorResourceType . transform ( clients = self . clients , resource_config = resource_config ) #NEWLINE# self . assertEqual ( flavor_id , '42' )