Commits

Carl Meyer  committed 15e7d32

Add test for IniReader.getargv.

  • Participants
  • Parent commits 269dc66

Comments (0)

Files changed (1)

File tests/test_config.py

         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]