#NEWLINE# def test_best_prefix_negative_less_than_a_byte( self ) : #NEWLINE# #INDENT# 'best_prefix_base: negative values less than a byte stay as bits' #NEWLINE# bm1 = bitmath . Byte ( bits = ( - 4 ) ) #NEWLINE# expected = bitmath . Bit ( ( - 4 ) ) #NEWLINE# res = bitmath . best_prefix ( bm1 ) #NEWLINE# self . assertEqual ( res , expected ) #NEWLINE# self . assertIs ( type ( res ) , bitmath . Bit )