Index: third_party/pexpect/tests/test_repr.py |
diff --git a/third_party/pexpect/tests/test_repr.py b/third_party/pexpect/tests/test_repr.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce618d4b3df52cb0966ac16f4acfde8cee60e89c |
--- /dev/null |
+++ b/third_party/pexpect/tests/test_repr.py |
@@ -0,0 +1,26 @@ |
+""" Test __str__ methods. """ |
+import pexpect |
+ |
+from . import PexpectTestCase |
+ |
+ |
+class TestCaseMisc(PexpectTestCase.PexpectTestCase): |
+ |
+ def test_str_spawnu(self): |
+ """ Exercise spawnu.__str__() """ |
+ # given, |
+ p = pexpect.spawnu('cat') |
+ # exercise, |
+ value = str(p) |
+ # verify |
+ assert isinstance(value, str) |
+ |
+ def test_str_spawn(self): |
+ """ Exercise spawn.__str__() """ |
+ # given, |
+ p = pexpect.spawn('cat') |
+ # exercise, |
+ value = str(p) |
+ # verify |
+ assert isinstance(value, str) |
+ |