Lines Matching refs:MockRawIO

129 class MockRawIO(MockRawIOWithoutRead):  class
139 class CMockRawIO(MockRawIO, io.RawIOBase):
142 class PyMockRawIO(MockRawIO, pyio.RawIOBase):
146 class MisbehavedRawIO(MockRawIO):
148 return MockRawIO.write(self, b) * 2
151 return MockRawIO.read(self, n) * 2
160 MockRawIO.readinto(self, buf)
170 class CloseFailureIO(MockRawIO):
734 raw = self.MockRawIO()
742 rawio = self.MockRawIO()
748 rawio = self.MockRawIO()
772 rawio = self.MockRawIO()
784 rawio = self.MockRawIO()
810 raw = self.MockRawIO()
822 raw = self.MockRawIO()
838 raw = self.MockRawIO()
852 raw = self.MockRawIO()
860 raw = self.MockRawIO()
862 x = self.MockRawIO()
873 rawio = self.MockRawIO()
876 rawio = self.MockRawIO()
885 rawio = self.MockRawIO([b"abc"])
894 rawio = self.MockRawIO([b"abc"])
905 bufio.__init__(self.MockRawIO())
910 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
917 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
934 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
950 rawio = self.MockRawIO((b"abc\n", b"d\n", b"ef"))
978 rawio = self.MockRawIO((b"abc", b"d", None, b"efg", None, None, None))
987 rawio = self.MockRawIO((b"a", None, None))
992 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
998 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1056 rawio = self.MockRawIO([b"x" * n])
1064 rawio = self.MockRawIO([b"x" * (n - 1), b"x"])
1079 rawio = self.MockRawIO()
1085 rawio = self.MockRawIO([b"abc"])
1127 rawio = self.MockRawIO()
1149 bufio.__init__(self.MockRawIO())
1153 raw = self.MockRawIO()
1162 writer = self.MockRawIO()
1173 writer = self.MockRawIO()
1187 writer = self.MockRawIO()
1268 writer = self.MockRawIO()
1276 writer = self.MockRawIO()
1284 writer = self.MockRawIO()
1291 writer = self.MockRawIO()
1297 writer = self.MockRawIO()
1373 self.tp(self.MockRawIO(), 8, 12)
1376 raw = self.MockRawIO()
1394 rawio = self.MockRawIO()
1400 rawio = self.MockRawIO()
1437 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1450 pair.__init__(self.MockRawIO(), self.MockRawIO())
1455 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1461 self.tp(self.MockRawIO(), self.MockRawIO(), 8, 12)
1464 class NotReadable(MockRawIO):
1468 self.assertRaises(IOError, self.tp, NotReadable(), self.MockRawIO())
1471 class NotWriteable(MockRawIO):
1475 self.assertRaises(IOError, self.tp, self.MockRawIO(), NotWriteable())
1478 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1483 pair = self.tp(self.BytesIO(b"abc"), self.MockRawIO())
1487 pair = lambda: self.tp(self.BytesIO(b"abc\ndef\nh"), self.MockRawIO())
1495 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1500 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1507 w = self.MockRawIO()
1508 pair = self.tp(self.MockRawIO(), w)
1519 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1525 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1529 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1535 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1542 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1550 reader = self.MockRawIO()
1552 writer = self.MockRawIO()
1564 reader = self.MockRawIO()
1565 writer = self.MockRawIO()
1580 reader = self.MockRawIO()
1582 writer = self.MockRawIO()
1593 class SelectableIsAtty(MockRawIO):
1595 MockRawIO.__init__(self)
1614 brw = self.tp(self.MockRawIO(), self.MockRawIO())
1639 raw = self.MockRawIO((b"asdf", b"ghjk"))
1861 rawio = self.MockRawIO()
2056 t.__init__(self.MockRawIO())
2801 b1 = self.BufferedRWPair(self.MockRawIO(), self.MockRawIO())
2803 b2 = self.BufferedRWPair(self.MockRawIO(), self.MockRawIO())
3373 mocks = (MockRawIO, MisbehavedRawIO, MockFileIO, CloseFailureIO,