()
| 35 | |
| 36 | |
| 37 | def test_cd_unexpected_filename(): |
| 38 | with pytest.raises(SystemExit) as excinfo: |
| 39 | main(('cd', 'subdir', 'cmd', '--', 'subdir/1', 'not-subdir/2')) |
| 40 | msg, = excinfo.value.args |
| 41 | assert msg == "unexpected file without prefix='subdir/': not-subdir/2" |
| 42 | |
| 43 | |
| 44 | def _norm(out): |