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)
def setUp(self): data = b"**abcdefghijklmnopqrstuvwxyz" stream = ByteIStream(data) self.subset = Subset(stream, 2, 26)