summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-09-18 14:29:03 -0700
committerJeff Quast <contact@jeffquast.com>2015-09-18 14:29:03 -0700
commit1727f6fb928eeb692bfa243c62fefe15c5069f58 (patch)
treef6e7eef18c9f435807e4ec0fd04087dc260e0f65
parentd2bc99b668f5ecbe4be3f815f72db428ba13ff06 (diff)
downloadpexpect-1727f6fb928eeb692bfa243c62fefe15c5069f58.tar.gz
add docstrings to winsize/dimensions tests
-rwxr-xr-xtests/test_winsize.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_winsize.py b/tests/test_winsize.py
index e7a71f2..be16773 100755
--- a/tests/test_winsize.py
+++ b/tests/test_winsize.py
@@ -26,6 +26,7 @@ import time
class TestCaseWinsize(PexpectTestCase.PexpectTestCase):
def test_initial_winsize(self):
+ """ Assert initial window dimension size (24, 80). """
p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py'
.format(self=self), timeout=3)
# default size by PtyProcess class is 24 rows by 80 columns.
@@ -33,6 +34,7 @@ class TestCaseWinsize(PexpectTestCase.PexpectTestCase):
p.close()
def test_initial_winsize_by_dimension(self):
+ """ Assert user-parameter window dimension size is initial. """
p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py'
.format(self=self), timeout=3,
dimensions=(40, 100))
@@ -40,6 +42,7 @@ class TestCaseWinsize(PexpectTestCase.PexpectTestCase):
p.close()
def test_setwinsize(self):
+ """ Ensure method .setwinsize() sends signal caught by child. """
p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py'
.format(self=self), timeout=3)
# Note that we must await the installation of the child process'