(example_app)
| 16 | |
| 17 | |
| 18 | def test_example_app(example_app): |
| 19 | # test the helper class plus demonstrate how to use it... |
| 20 | example_app.expect(textwrap.dedent("""\ |
| 21 | hi, there! |
| 22 | let's get to know each other better... |
| 23 | Please enter your name: """)) |
| 24 | example_app.writeline('Stuart') |
| 25 | assert example_app.readline() == 'Hi Stuart, have a nice day!' |
| 26 | assert example_app.readline() == 'It was a pleasure talking to you...' |
| 27 | |
| 28 | |
| 29 | def test_example_app_dialog_style(example_app): |