| 2384 | |
| 2385 | def test_isatty(self): |
| 2386 | class SelectableIsAtty(MockRawIO): |
| 2387 | def __init__(self, isatty): |
| 2388 | MockRawIO.__init__(self) |
| 2389 | self._isatty = isatty |
| 2390 | |
| 2391 | def isatty(self): |
| 2392 | return self._isatty |
| 2393 | |
| 2394 | pair = self.tp(SelectableIsAtty(False), SelectableIsAtty(False)) |
| 2395 | self.assertFalse(pair.isatty()) |