Beispiel #1
0
 def setUp(self):
     self.bdrain = BBuf()
     """Buffer accepting binary strings (bytes)"""
     self.udrain = UBuf()
     """Buffer accepting unicode strings"""
     self.mock_stdout = mock_stdout()
     """Stub of sys.stdout under Python 3"""
Beispiel #2
0
 def __init__(self):
     self.buffer = BBuf()
     UBuf.__init__(self)