Lines Matching refs:MockRawIO
139 class MockRawIO(MockRawIOWithoutRead): class
149 class CMockRawIO(MockRawIO, io.RawIOBase):
152 class PyMockRawIO(MockRawIO, pyio.RawIOBase):
156 class MisbehavedRawIO(MockRawIO):
180 class SlowFlushRawIO(MockRawIO):
196 class CloseFailureIO(MockRawIO):
712 check(self.BufferedWriter(self.MockRawIO()))
713 check(self.BufferedRandom(self.MockRawIO()))
714 check(self.BufferedRWPair(self.MockRawIO(), self.MockRawIO()))
1033 raw = self.MockRawIO()
1041 rawio = self.MockRawIO()
1047 rawio = self.MockRawIO()
1071 rawio = self.MockRawIO()
1079 rawio = self.MockRawIO()
1105 raw = self.MockRawIO()
1116 raw = self.MockRawIO()
1127 raw = self.MockRawIO()
1143 raw = self.MockRawIO()
1160 raw = self.MockRawIO()
1176 raw = self.MockRawIO()
1189 raw = self.MockRawIO()
1191 x = self.MockRawIO()
1202 rawio = self.MockRawIO()
1205 rawio = self.MockRawIO()
1212 rawio = self.MockRawIO()
1222 rawio = self.MockRawIO([b"abc"])
1231 rawio = self.MockRawIO([b"abc"])
1242 bufio.__init__(self.MockRawIO())
1247 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1254 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1270 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1281 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1294 rawio = self.MockRawIO((b"abc", None))
1303 rawio = self.MockRawIO((b"abc", b"de", b"fgh", b"jkl"))
1327 rawio = self.MockRawIO((data,))
1348 rawio = self.MockRawIO((data,))
1368 rawio = self.MockRawIO((b"abc\n", b"d\n", b"ef"))
1396 rawio = self.MockRawIO((b"abc", b"d", None, b"efg", None, None, None))
1405 rawio = self.MockRawIO((b"a", None, None))
1410 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1416 rawio = self.MockRawIO((b"abc", b"d", b"efg"))
1481 rawio = self.MockRawIO([b"x" * n])
1489 rawio = self.MockRawIO([b"x" * (n - 1), b"x"])
1514 rawio = self.MockRawIO()
1520 rawio = self.MockRawIO([b"abc"])
1563 rawio = self.MockRawIO()
1585 bufio.__init__(self.MockRawIO())
1589 raw = self.MockRawIO()
1598 writer = self.MockRawIO()
1609 writer = self.MockRawIO()
1623 writer = self.MockRawIO()
1703 writer = self.MockRawIO()
1711 writer = self.MockRawIO()
1719 writer = self.MockRawIO()
1726 writer = self.MockRawIO()
1733 writer = self.MockRawIO()
1825 self.tp(self.MockRawIO(), 8, 12)
1828 raw = self.MockRawIO()
1860 rawio = self.MockRawIO()
1866 rawio = self.MockRawIO()
1904 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1917 pair.__init__(self.MockRawIO(), self.MockRawIO())
1922 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1927 self.tp(self.MockRawIO(), self.MockRawIO(), 8, 12)
1930 class NotReadable(MockRawIO):
1934 self.assertRaises(OSError, self.tp, NotReadable(), self.MockRawIO())
1937 class NotWriteable(MockRawIO):
1941 self.assertRaises(OSError, self.tp, self.MockRawIO(), NotWriteable())
1944 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1949 pair = self.tp(self.BytesIO(b"abc"), self.MockRawIO())
1953 pair = lambda: self.tp(self.BytesIO(b"abc\ndef\nh"), self.MockRawIO())
1961 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1969 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1976 w = self.MockRawIO()
1977 pair = self.tp(self.MockRawIO(), w)
1988 pair = self.tp(self.BytesIO(b"abcdef"), self.MockRawIO())
1994 pair = self.tp(self.MockRawIO(), self.MockRawIO())
1998 pair = self.tp(self.MockRawIO(), self.MockRawIO())
2004 pair = self.tp(self.MockRawIO(), self.MockRawIO())
2011 pair = self.tp(self.MockRawIO(), self.MockRawIO())
2019 reader = self.MockRawIO()
2021 writer = self.MockRawIO()
2033 reader = self.MockRawIO()
2034 writer = self.MockRawIO()
2049 reader = self.MockRawIO()
2051 writer = self.MockRawIO()
2064 class SelectableIsAtty(MockRawIO):
2066 MockRawIO.__init__(self)
2085 brw = self.tp(self.MockRawIO(), self.MockRawIO())
2110 raw = self.MockRawIO((b"asdf", b"ghjk"))
2336 rawio = self.MockRawIO()
2531 t.__init__(self.MockRawIO())
3265 raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
3274 raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
3315 raw = self.MockRawIO([])
3643 b1 = self.BufferedRWPair(self.MockRawIO(), self.MockRawIO())
3645 b2 = self.BufferedRWPair(self.MockRawIO(), self.MockRawIO())
4361 mocks = (MockRawIO, MisbehavedRawIO, MockFileIO, CloseFailureIO,