#NEWLINE# def test_parse_search_values_old_format( self ) : #NEWLINE# #INDENT# argv = [ 'd0r0z0-127.0.0.1:6200R127.0.0.1:6200/sda1_some meta data' ] #NEWLINE# search_values = ringbuilder . _parse_search_values ( search_values ) #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 ( search_values [ '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' )