code: def test_readlines(self):
      shell = MockShell()
      f = run.StdInputFile(shell, "stdin")
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(), ["one\n", "two\n"])
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(-1), ["one\n", "two\n"])
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(None), ["one\n", "two\n"])
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(0), ["one\n", "two\n"])
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(3), ["one\n"])
      shell.push(["one\n", "two\n", ""])
      self.assertEqual(f.readlines(4), ["one\n", "two\n"])
  
      shell.push(["one\n", "two\n", ""])
      self.assertRaises(TypeError, f.readlines, 1.5)
      self.assertRaises(TypeError, f.readlines, "1")
      self.assertRaises(TypeError, f.readlines, 1, 1)
  
imports: from idlelib import run
  import io
  import sys
  from test.support import captured_output, captured_stderr
  import unittest
  from unittest import mock
  import idlelib
  from idlelib.idle_test.mock_idle import Func
label_desc: Use image node_id 5 for calling the StdInputFilesTest obj's underlying member method code with example usage: obj.test_readlines() without return types