MCPcopy Index your code
hub / github.com/python/cpython / test_misc

Method test_misc

Lib/idlelib/idle_test/test_run.py:222–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

220class StdOutputFilesTest(unittest.TestCase):
221
222 def test_misc(self):
223 shell = MockShell()
224 f = run.StdOutputFile(shell, 'stdout')
225 self.assertIsInstance(f, io.TextIOBase)
226 self.assertEqual(f.encoding, 'utf-8')
227 self.assertEqual(f.errors, 'strict')
228 self.assertIsNone(f.newlines)
229 self.assertEqual(f.name, '<stdout>')
230 self.assertFalse(f.closed)
231 self.assertTrue(f.isatty())
232 self.assertFalse(f.readable())
233 self.assertTrue(f.writable())
234 self.assertFalse(f.seekable())
235
236 def test_unsupported(self):
237 shell = MockShell()

Callers

nothing calls this directly

Calls 10

writableMethod · 0.95
MockShellClass · 0.85
assertIsInstanceMethod · 0.80
assertIsNoneMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
assertEqualMethod · 0.45
isattyMethod · 0.45
readableMethod · 0.45
seekableMethod · 0.45

Tested by

no test coverage detected