Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Lib/test/test_this.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import unittest

from test.support import requires_subprocess
from test.support.script_helper import assert_python_ok


@requires_subprocess()
class CommandLineTest(unittest.TestCase):
def test_this_module(self):
rc, stdout, stderr = assert_python_ok('-m', 'this')
self.assertEqual(rc, 0)
self.assertIn(b'The Zen of Python', stdout)


if __name__ == "__main__":
unittest.main()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add tests for ``this`` command-line interface.
Loading