示例#1
0
    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)
示例#2
0
    def setUp(self):
        data = b"**abcdefghijklmnopqrstuvwxyz"
        stream = ByteIStream(data)

        self.byte_istream = stream
        self.sis = SubsetIStream(stream, 2, 26)
示例#3
0
 def setUp(self):
     data = b"**abcdefghijklmnopqrstuvwxyz"
     stream = ByteIStream(data)
     self.subset = Subset(stream, 2, 26)
示例#4
0
 def setUp(self):
     data = b"abcdefghijklmnopqrstuvwxyz"
     self.bis = ByteIStream(data)