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

Method test_misc

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

Source from the content-addressed store, hash-verified

117class StdInputFilesTest(unittest.TestCase):
118
119 def test_misc(self):
120 shell = MockShell()
121 f = run.StdInputFile(shell, 'stdin')
122 self.assertIsInstance(f, io.TextIOBase)
123 self.assertEqual(f.encoding, 'utf-8')
124 self.assertEqual(f.errors, 'strict')
125 self.assertIsNone(f.newlines)
126 self.assertEqual(f.name, '<stdin>')
127 self.assertFalse(f.closed)
128 self.assertTrue(f.isatty())
129 self.assertTrue(f.readable())
130 self.assertFalse(f.writable())
131 self.assertFalse(f.seekable())
132
133 def test_unsupported(self):
134 shell = MockShell()

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected