OLD | NEW |
(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 |
OLD | NEW |