'Test all possible widths for a single byte.'

def testWidths(self):

    self.assertEqual(0, parquet.encoding.width_from_max_int(0))
    self.assertEqual(1, parquet.encoding.width_from_max_int(1))
    self.assertEqual(2, parquet.encoding.width_from_max_int(2))
    self.assertEqual(2, parquet.encoding.width_from_max_int(3))
    self.assertEqual(3, parquet.encoding.width_from_max_int(4))
    self.assertEqual(3, parquet.encoding.width_from_max_int(5))
    self.assertEqual(3, parquet.encoding.width_from_max_int(6))
    self.assertEqual(3, parquet.encoding.width_from_max_int(7))
    self.assertEqual(4, parquet.encoding.width_from_max_int(8))
    self.assertEqual(4, parquet.encoding.width_from_max_int(15))
    self.assertEqual(5, parquet.encoding.width_from_max_int(16))
    self.assertEqual(5, parquet.encoding.width_from_max_int(31))
    self.assertEqual(6, parquet.encoding.width_from_max_int(32))
    self.assertEqual(6, parquet.encoding.width_from_max_int(63))
    self.assertEqual(7, parquet.encoding.width_from_max_int(64))
    self.assertEqual(7, parquet.encoding.width_from_max_int(127))
    self.assertEqual(8, parquet.encoding.width_from_max_int(128))
    self.assertEqual(8, parquet.encoding.width_from_max_int(255))
