#NEWLINE# def test_one_meg( self ) : #NEWLINE# #INDENT# bytes_ = ( 2 ** 20 ) #NEWLINE# raw = '1048576' #NEWLINE# human = '1.0M' #NEWLINE# self . assertEqual ( raw , u . prt_bytes ( bytes_ , False ) . lstrip ( ) ) #NEWLINE# self . assertEqual ( self , u . prt_bytes ( bytes_ , True ) . lstrip ( ) )