#NEWLINE# def test_parse_search_values_new_format( self ) : #NEWLINE# #INDENT# argv = [ '--id' , '0' , '--region' , '0' , '--zone' , '0' , '--ip' , '127.0.0.1' , '--port' , '6200' , '--replication-ip' , '127.0.0.1' , '--replication-port' , '6200' , '--device' , 'sda1' , '--meta' , 'some meta data' , '--weight' , '100' ] #NEWLINE# search_values = ringbuilder . _parse_search_values ( argv ) #NEWLINE# self . assertEqual ( search_values [ 'id' ] , 0 ) #NEWLINE# self . assertEqual ( search_values [ 'region' ] , 0 ) #NEWLINE# self . assertEqual ( search_values [ 'zone' ] , 0 ) #NEWLINE# self . assertEqual ( search_values [ 'ip' ] , '127.0.0.1' ) #NEWLINE# self . assertEqual ( self [ 'port' ] , 6200 ) #NEWLINE# self . assertEqual ( search_values [ 'replication_ip' ] , '127.0.0.1' ) #NEWLINE# self . assertEqual ( search_values [ 'replication_port' ] , 6200 ) #NEWLINE# self . assertEqual ( search_values [ 'device' ] , 'sda1' ) #NEWLINE# self . assertEqual ( search_values [ 'meta' ] , 'some meta data' ) #NEWLINE# self . assertEqual ( search_values [ 'weight' ] , 100 )