def test_nonexistent_file(self, runner, tmpdir):
        fn = tmpdir.join('missingfile.po')
        result = runner.invoke(cli, ('translate', '-p', 'shouty', str(fn)))
        assert result.exit_code == 2
        last_line = result.output.splitlines()[-1]
        assert last_line == 'Error: file %s does not exist.' % str(fn)
dataset/ETHPy150Open willkg/dennis/tests/test_cmdline.py/TestTranslate.test_nonexistent_file/original