1import pytest 2 3from conftest import assert_bash_exec 4 5 6@pytest.mark.bashcomp(cmd=None) 7class TestUnitQuoteReadline: 8 def test_exec(self, bash): 9 assert_bash_exec(bash, "quote_readline '' >/dev/null") 10 11 def test_env_non_pollution(self, bash): 12 """Test environment non-pollution, detected at teardown.""" 13 assert_bash_exec( 14 bash, "foo() { quote_readline meh >/dev/null; }; foo; unset foo" 15 ) 16