Test: Change most tests to use "add test" instead of split arguments

This commit is contained in:
Renato Alves
2015-07-17 19:13:26 +01:00
parent d711bda35c
commit 27b8cabac1
76 changed files with 1179 additions and 1245 deletions

View File

@@ -44,12 +44,12 @@ class TestCLI(TestCase):
def test_quoted_args_remain_intact(self):
"""Quoted arguments should remain unmolested."""
self.t(("add", "'a/b'"))
code, out, err = self.t(("_get", "1.description"))
self.t("add 'a/b'")
code, out, err = self.t("_get 1.description")
self.assertIn("a/b", out)
self.t(("add", "'1-2'"))
code, out, err = self.t(("_get", "2.description"))
self.t("add '1-2'")
code, out, err = self.t("_get 2.description")
self.assertIn("1-2", out)