diff options
author | Carl Meyer <carl@oddbird.net> | 2013-08-09 17:32:32 -0600 |
---|---|---|
committer | Carl Meyer <carl@oddbird.net> | 2013-08-09 17:32:32 -0600 |
commit | 8d0991dbc1806a5e2139887293029aeddbecb4f9 (patch) | |
tree | 80b48c91f739c7df8f2e501ff7933b38104a6752 | |
parent | a8f9473db1c3018cd0c030a502155019ae8c1786 (diff) | |
download | tox-8d0991dbc1806a5e2139887293029aeddbecb4f9.tar.gz |
Add test for IniReader.getargv.
-rw-r--r-- | tests/test_config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index a4c7d2f..a83dbd2 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -320,6 +320,16 @@ class TestIniParser: assert reader.getargvlist('section', 'key')[0] == expected + def test_getargv(self, newconfig): + config = newconfig(""" + [section] + key=some command "with quoting" + """) + reader = IniReader(config._cfg) + expected = ['some', 'command', 'with quoting'] + assert reader.getargv('section', 'key') == expected + + def test_getpath(self, tmpdir, newconfig): config = newconfig(""" [section] |