#NEWLINE# def test_count_bytes_overflow( self ) : #NEWLINE# #INDENT# num = 65536 #NEWLINE# bytes_exp = 3 #NEWLINE# bytes_obs = utils . count_bytes ( num ) #NEWLINE# self . assertEqual ( bytes_exp , bytes_obs , 'Value {0} requires {1} bytes to encode, received {2} bytes' . format ( num , bytes_obs , bytes_obs ) )