MCPcopy Index your code
hub / github.com/geekcomputers/Python / test_reads_from_stdin_without_files

Method test_reads_from_stdin_without_files

Cat/test_cat.py:44–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 self.assertEqual(result.stdout, "First\nSecond\n")
43
44 def test_reads_from_stdin_without_files(self):
45 result = self.run_cat(input_text="From stdin\nSecond line\n")
46
47 self.assertEqual(result.returncode, 0)
48 self.assertEqual(result.stdout, "From stdin\nSecond line\n")
49
50 def test_dash_reads_stdin_between_files(self):
51 with tempfile.TemporaryDirectory() as temp_dir:

Callers

nothing calls this directly

Calls 1

run_catMethod · 0.95

Tested by

no test coverage detected