'8-bit, Little endian, wraparound'

def test_LE8_wraparound(self):

    c = Counter.new(8, little_endian=True)
    for i in xrange(1, 256):
        self.assertEqual(i, c.next_value())
        self.assertEqual(bchr(i), c())
    self.assertRaises(OverflowError, c.next_value)
    self.assertRaises(OverflowError, c)
    self.assertRaises(OverflowError, c.next_value)
    self.assertRaises(OverflowError, c)
