Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: third_party/pexpect/tests/test_repr.py

Issue 1398903002: Add third_party/pexpect (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@end-to-end-test
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/pexpect/tests/test_replwrap.py ('k') | third_party/pexpect/tests/test_run.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 """ Test __str__ methods. """
2 import pexpect
3
4 from . import PexpectTestCase
5
6
7 class TestCaseMisc(PexpectTestCase.PexpectTestCase):
8
9 def test_str_spawnu(self):
10 """ Exercise spawnu.__str__() """
11 # given,
12 p = pexpect.spawnu('cat')
13 # exercise,
14 value = str(p)
15 # verify
16 assert isinstance(value, str)
17
18 def test_str_spawn(self):
19 """ Exercise spawn.__str__() """
20 # given,
21 p = pexpect.spawn('cat')
22 # exercise,
23 value = str(p)
24 # verify
25 assert isinstance(value, str)
26
OLDNEW
« no previous file with comments | « third_party/pexpect/tests/test_replwrap.py ('k') | third_party/pexpect/tests/test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698