From e2ac2dcf3768aa04f8a1eb4b656b3f0b5a49d945 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 9 Jul 2016 22:41:41 +0100 Subject: Fix running 'env' in replwrap-ed bash --- tests/test_replwrap.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index 26ff53c..c9fabd0 100644 --- a/tests/test_replwrap.py +++ b/tests/test_replwrap.py @@ -33,6 +33,13 @@ class REPLWrapTestCase(unittest.TestCase): res = bash.run_command('man sleep', timeout=5) assert 'SLEEP' in res, res + def test_bash_env(self): + bash = replwrap.bash() + res = bash.run_command("env") + self.assertIn('PS1', res) + res = bash.run_command("echo $HOME") + assert res.startswith('/'), res + def test_long_running_multiline(self): " ensure the default timeout is used for multi-line commands. " bash = replwrap.bash() -- cgit v1.2.1