def test_chunk_error(self):
     b = BitList('010000111')
     with self.assertRaises(ChunkError):
         b.chunk(4)
 def test_chunk(self):
     b = BitList('01000011')
     self.assertEqual(b.chunk(4), [[0, 1, 0, 0], [0, 0, 1, 1]])