Exemple #1
0
class SubsetTestCase(TestCase):
    def setUp(self):
        data = b"**abcdefghijklmnopqrstuvwxyz"
        stream = ByteIStream(data)
        self.subset = Subset(stream, 2, 26)
    # end def setUp

    def test_list(self):
        ae = self.assertEqual
        ae(self.subset.list(), [StreamInfo(0)])
    # end def test_list

    def test_open(self):
        ae = self.assertEqual
        ae(self.subset.open(), self.subset.stream)
Exemple #2
0
class SubsetTestCase(TestCase):
    def setUp(self):
        data = b"**abcdefghijklmnopqrstuvwxyz"
        stream = ByteIStream(data)
        self.subset = Subset(stream, 2, 26)

    # end def setUp

    def test_list(self):
        ae = self.assertEqual
        ae(self.subset.list(), [StreamInfo(0)])

    # end def test_list

    def test_open(self):
        ae = self.assertEqual
        ae(self.subset.open(), self.subset.stream)
Exemple #3
0
 def setUp(self):
     data = b"**abcdefghijklmnopqrstuvwxyz"
     stream = ByteIStream(data)
     self.subset = Subset(stream, 2, 26)
Exemple #4
0
 def setUp(self):
     data = b"**abcdefghijklmnopqrstuvwxyz"
     stream = ByteIStream(data)
     self.subset = Subset(stream, 2, 26)