summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-02-10 12:29:32 +0000
committerLars Wirzenius <liw@liw.fi>2013-02-10 12:29:32 +0000
commitad7c76554c65f230cfc78eb457a268a988bca380 (patch)
treec61c39d65ed10ea1e9d07e62a4c06e2525c14a8f
parent694dc0d1d744e20e5bf1722e928afa4cbcb596a0 (diff)
downloadcliapp-ad7c76554c65f230cfc78eb457a268a988bca380.tar.gz
Allow safe characters as-is
-rw-r--r--cliapp/runcmd_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cliapp/runcmd_tests.py b/cliapp/runcmd_tests.py
index 8f8a8a9..44991c4 100644
--- a/cliapp/runcmd_tests.py
+++ b/cliapp/runcmd_tests.py
@@ -130,3 +130,6 @@ class ShellQuoteTests(unittest.TestCase):
def test_returns_empty_string_for_empty_string(self):
self.assertEqual(cliapp.shell_quote(''), '')
+ def test_returns_same_string_when_safe(self):
+ self.assertEqual(cliapp.shell_quote('abc123'), 'abc123')
+