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

Method test_show_ends

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

Source from the content-addressed store, hash-verified

118 self.assertEqual(result.stdout, "Alpha\n\nBeta\n\n")
119
120 def test_show_ends(self):
121 with tempfile.TemporaryDirectory() as temp_dir:
122 file_path = Path(temp_dir) / "lines.txt"
123 file_path.write_text("Alpha\nBeta", encoding="utf-8")
124
125 result = self.run_cat("-E", file_path)
126
127 self.assertEqual(result.returncode, 0)
128 self.assertEqual(result.stdout, "Alpha$\nBeta$")
129
130 def test_combines_options(self):
131 with tempfile.TemporaryDirectory() as temp_dir:

Callers

nothing calls this directly

Calls 1

run_catMethod · 0.95

Tested by

no test coverage detected