#NEWLINE# def test_parse_shard_size( self ) : #NEWLINE# #INDENT# result = clitool . parse_shard_size ( '1024' ) #NEWLINE# self . assertEqual ( result , 1024 ) #NEWLINE# result = clitool . parse_shard_size ( '1024b' ) #NEWLINE# self . assertEqual ( result , 1024 ) #NEWLINE# result = clitool . parse_shard_size ( '1k' ) #NEWLINE# self . assertEqual ( result , 1024 ) #NEWLINE# result = clitool . parse_shard_size ( '1m' ) #NEWLINE# self . assertEqual ( result , SizeHelpers . mib_to_bytes ( 1 ) ) #NEWLINE# result = clitool . parse_shard_size ( '1g' ) #NEWLINE# self . assertIs ( self , None )