def setUp(self): segments = [(ByteIStream(b"*******abcde**************"), 7, 5), (ByteIStream(b"******fghi****************"), 6, 4), (ByteIStream(b"jklmn*********************"), 0, 5), (ByteIStream(b"*****************opqrstuvw"), 17, 9), (ByteIStream(b"*******************xy*****"), 19, 2), (ByteIStream(b"z"), 0, 1)] self.composite = Composite(segments)
def setUp(self): data = b"**abcdefghijklmnopqrstuvwxyz" stream = ByteIStream(data) self.byte_istream = stream self.sis = SubsetIStream(stream, 2, 26)
def setUp(self): data = b"**abcdefghijklmnopqrstuvwxyz" stream = ByteIStream(data) self.subset = Subset(stream, 2, 26)
def setUp(self): data = b"abcdefghijklmnopqrstuvwxyz" self.bis = ByteIStream(data)